常用SQL语句
1.从a表更新b表某个字段的数据
- UPDATE a,b
- SET a.1=b.1
- WHERE a.2=b.2
2.修改库表某个字段的默认值
ALTER TABLE tbn_time_table_line_info MODIFY COLUMN runsNumber int DEFAULT 0
ALTER TABLE tbn_time_table_line_info MODIFY COLUMN priceMiddle varchar(255) DEFAULT ""
ALTER TABLE tbn_time_table_line_info MODIFY COLUMN runsNumber int DEFAULT 0
ALTER TABLE tbn_time_table_line_info MODIFY COLUMN priceMiddle varchar(255) DEFAULT ""