葵花寶典 二十一 數據庫sql

DQL 語法: select * from 表名; 查詢所有 select 字段名1,字段名2… from 表名; select DISTINCT 字段名 from 表名; 去除重複的數據 查詢的列可以運算 可以使用別名: 使用as 別名 並且as 可以省略 在所有的學生分數上加10分 select name,math+10 from 表名; 統計每個學生的總分 select name,math+
相關文章
相關標籤/搜索