日期:2014-05-16 浏览次数:20793 次
insert into table1(f1,f2) select f1,f2 from table1 where id < 10;
SHOW COLUMNS FROM hugetable; DESCRIBE hugetable;
+------------+----------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +------------+----------+------+-----+---------+----------------+ | Id | int(11) | NO | PRI | NULL | auto_increment | | Name | char(35) | NO | | | | | Country | char(3) | NO | UNI | | |
select column_name from information_schema.columns where table_name='hugetable';