壽光專業(yè)做網(wǎng)站的公司天津百度分公司
模糊查詢
模糊查詢like后面的字段要求用單引號引用,不能使用雙引號
select * from user where name like '%小組'
分組查詢
select查詢的列字段必須在分組中的字段存在
正確:
select name,age?from user group by name,age
錯(cuò)誤:
?select *?from user group by name,age
常用函數(shù)
函數(shù) | 達(dá)夢技術(shù)文檔 (dameng.com)?