时间:2021-07-01 10:21:17 帮助过:23人阅读
1. 标识符限定符
SqlServer | [] |
MySql | `` |
2. 字符串相加
SqlServer | 直接用 + |
MySql | concat() |
3. isnull()
SqlServer | isnull() |
MySql | ifnull() 注意:MySql也有isnull()函数,但意义不一样 |
4. getdate()
SqlServer | getdate() |
MySql | now() |
5. newid()
SqlServer | newid() |
MySql | uuid() |
6. @@ROWCOUNT
SqlServer | @@ROWCOUNT |
MySql | row_count() 注意:MySql的这个函数仅对于update, insert, delete有效 |
7. SCOPE_IDENTITY()
SqlServer | SCOPE_IDENTITY() |
MySql | last_insert_id() |
8. if ... else ...
mysql学习笔记
标签:server uid table 笔记 过程 字符串 delete 常用 identity