摘要: SQL函数 AVG select AVG(col) AS avgvalue from tablename select col2 from tablename where col1 (select AVG(col1) from tablename) COUNT 返回值不包含空值 select COU 阅读全文
posted @ 2018-01-22 21:53 嘻呵呵 阅读(366) 评论(0) 推荐(0) 编辑
摘要: SQL语法 LIMIT select col from table limit number select from table limit number LIKE select from table where col LIKE '%in%' select from table where col 阅读全文
posted @ 2018-01-22 16:47 嘻呵呵 阅读(3441) 评论(0) 推荐(0) 编辑
摘要: SQL语法 在表中选择列 select 列名 from 表名 选择所有列 select from 表名 返回唯一值 select distinct 列名 from 表名 where select from 表名 where city = 'beijng' select from 表名 where y 阅读全文
posted @ 2018-01-22 15:53 嘻呵呵 阅读(285) 评论(0) 推荐(0) 编辑