View command mysql table structure, as follows:
desc name;
Show Columns from table;
DESCRIBE name;
Show Create Table name;
use information_schema
select * from columns where table_name=’表名’;
By the way a note:
Show Databases;
use the database name;
Show the Tables;
A unique original index AK_PAS_Name (PAC_Name) tb_webparamcounter in the table,
the following modifications sql index
ALTER Table tb_webparamcounter drop index AK_PAS_Name;
ALTER Table tb_webparamcounter the Add UNIQUE AK_PAS_Name (PC_ID, PAC_NAME);
If the index is not found in the logic, but also need to add a field in, performing
ALTER Table tb_webparamcounter drop index AK_PAS_Name;
ALTER Table tb_webparamcounter the Add UNIQUE AK_PAS_Name (PC_ID, PAC_Name, PAC_Value);
NOTE: At this time PC_ID, PAC_Name, PAC_Value three fields FOREIGN KEY is not
otherwise required to drop FOREIGN KEY, and then redo the previous step for the job
顺便提下oracle
select * from v$database;
select * from all_users;
select * from user_tables;