摘要:
a. show tables或show tables from database_name; // 显示当前数据库中所有表的名称
b. show databases; // 显示mysql中所有数据库的名称
c. show columns from table_name from database_name; 或show columns from database_name.table_name; // 显示表中列名称
d. show grants for user_name@localhost; // 显示一个用户的权限,显示结果类似于grant 命令
e. show index from table_name; // 显示表的索引
f. show status; // 显示一些系统特定资源的信息,例如,正在运行的线程数量
g. show variables; // 显示系统变量的名称和值 阅读全文
摘要:
sqlldr userid=test/test control='a.ctl'
OPTIONS ( ROWS=100000)
LOAD DATA
INFILE 'a.dat'
BADFILE 'a.bad'
INTO TABLE z
Append
FIELDS TERMINATED BY X'9'
TRAILING NULLCOLS
(a ,
b ,
c DATE "yyyymmdd")
阅读全文