摘要:
一、case函数 1.简单函数:枚举这个字段所有可能的值。适合枚举值为固定的值。 (1)语法 case column when condition_1 then result_1 when condition_2 then result_2 when condition_3 then result_ 阅读全文
摘要:
1.语法 select column_name(s) from table_name limit [M] N; select column_name(s) from table_name limit N offset M (1) M:返回结果的偏移量。即跳过M条数据,从第M+1条数据开始取起。M可以 阅读全文
摘要:
1.修改表名 (1)mysql rename table table1 to table2; (2)SQL SERVER EXEC sp_rename 'table1', 'table2'; (3)Oracle alter table table1 rename to table2 (4)db2 r 阅读全文