摘要:
1、select emp_name from employee where start_date between '2005-01-01' and '2007-01-01'; 2、between and 本质是产生了两个使用 <= 和 >= 操作符的条件。 3、between and 不仅可以用于时 阅读全文
posted @ 2019-07-21 17:27
小能熊
阅读(498)
评论(0)
推荐(0)
摘要:
1、distinct 的用法不再赘述,需要注意的是:产生无重复的结果集首先需要对数据排序,这对于大的结果集来说是相当耗时的。因此尽量减少不必要的使用。 阅读全文
posted @ 2019-07-21 16:32
小能熊
阅读(133)
评论(0)
推荐(0)
摘要:
1、 字符串转datetime 常用的格式:str_to_date('DEC-21-1980','%b-%d-%Y') 阅读全文
posted @ 2019-07-21 16:10
小能熊
阅读(540)
评论(0)
推荐(0)
摘要:
1、主键不唯一:ERROR 1062 (23000) :Duplicate entry '1' for key 'PRIMARY' 2、不存在的外键:ERROR 1052 (23000) :Cannot add or update a child row : a foreign key constr 阅读全文
posted @ 2019-07-21 16:00
小能熊
阅读(186)
评论(0)
推荐(0)

浙公网安备 33010602011771号