c*o
4 楼
you can try
show columns in table_name, for more information check the following page
http://dev.mysql.com/doc/refman/5.0/en/show-columns.html
there should be one column which is designed for the keys
etc?
【在 I**A 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: 如果有一个table books,怎么知道这个table有哪些columns, what is the key, etc?
show columns in table_name, for more information check the following page
http://dev.mysql.com/doc/refman/5.0/en/show-columns.html
there should be one column which is designed for the keys
etc?
【在 I**A 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: 如果有一个table books,怎么知道这个table有哪些columns, what is the key, etc?
t*a
5 楼
show create table books;
d*e
6 楼
Oracle:
最简单是 desc books,
或者 select * from user_tab_columns where table_name = 'BOOKS' 会详细一些。
key之类,可以用这个
select b.constraint_name, b.column_name, b.position
from user_constraints a, user_cons_columns b
where a.constraint_name = b.constraint_name
and a.table_name = 'BOOKS'
order by b.constraint_name, b.column_name, b.position;
其它的database,我想也有类似的
etc?
【在 I**A 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: 如果有一个table books,怎么知道这个table有哪些columns, what is the key, etc?
最简单是 desc books,
或者 select * from user_tab_columns where table_name = 'BOOKS' 会详细一些。
key之类,可以用这个
select b.constraint_name, b.column_name, b.position
from user_constraints a, user_cons_columns b
where a.constraint_name = b.constraint_name
and a.table_name = 'BOOKS'
order by b.constraint_name, b.column_name, b.position;
其它的database,我想也有类似的
etc?
【在 I**A 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: 如果有一个table books,怎么知道这个table有哪些columns, what is the key, etc?
I*A
7 楼
thank you all..
"user_tab_columns" is a keyword?
【在 d**e 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: Oracle:
: 最简单是 desc books,
: 或者 select * from user_tab_columns where table_name = 'BOOKS' 会详细一些。
: key之类,可以用这个
: select b.constraint_name, b.column_name, b.position
: from user_constraints a, user_cons_columns b
: where a.constraint_name = b.constraint_name
: and a.table_name = 'BOOKS'
: order by b.constraint_name, b.column_name, b.position;
: 其它的database,我想也有类似的
"user_tab_columns" is a keyword?
【在 d**e 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: Oracle:
: 最简单是 desc books,
: 或者 select * from user_tab_columns where table_name = 'BOOKS' 会详细一些。
: key之类,可以用这个
: select b.constraint_name, b.column_name, b.position
: from user_constraints a, user_cons_columns b
: where a.constraint_name = b.constraint_name
: and a.table_name = 'BOOKS'
: order by b.constraint_name, b.column_name, b.position;
: 其它的database,我想也有类似的
I*A
9 楼
en, this one would be the one that they want..
【在 c****o 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: you can try
: show columns in table_name, for more information check the following page
: http://dev.mysql.com/doc/refman/5.0/en/show-columns.html
: there should be one column which is designed for the keys
:
: etc?
【在 c****o 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: you can try
: show columns in table_name, for more information check the following page
: http://dev.mysql.com/doc/refman/5.0/en/show-columns.html
: there should be one column which is designed for the keys
:
: etc?
相关阅读
面试问有两个职位, 问我喜欢哪个, 我是不是该说两个都喜欢?我的算法博客认识的一个小印打了N次电话和email要求refer他某个公司讨价还价一定要是在收到正式offer letter时候进行吗?Consulting公司(统计)预收培训费,正规吗G家offer资深系统运维工程师被layoff了的话还需要renew H1b么? (转载)Target IT外包烙印。 7千万卡被盗窃,CIO被炒。 (转载)C++虽然工作机会少一些,但没有新毕业生和你抢饭碗问个算time complexity的问题Refer me: 任何 生物 和/或 医药 相关的工作!两个on-site,不同公司,同一地区,要求coordidate interview dates,合适么?请问预防没抽中应该何时准备申itu的cpt呢?apple 快两周了,一点消息都没有,都快申h1b了,真是难受求 rocket fuel, FireEye, zillow以及square 内推,谢谢请教Zillow家的Code Test关于G家的第一轮电面Rocket Fuel Web applications developer coding test可以内推:湾区IT Company招Network/Operations Engineer