mysql>SELECT * FROM `har_data`.`month_detail` where employee_status like '%休假
%'
+-----------------+-------------+-----------+------------+----------+----------
+-------------------+-----------------+
| monthdetail_key | employee_id | date_year | date_month | date_day | date_type
| employee_worktime | employee_status |
+-----------------+-------------+-----------+------------+----------+----------
+-------------------+-----------------+
|6217 | 1933 | 2012 | 12 |3 | 平日
| - | 年休假 |
|6218 | 1933 | 2012 | 12 |4 | 平日
| - | 年休假 |
用正则表达式来判断,示例SQL代码如下:select username from user where not(username regexp "[\u0391-\uFFE5]")这个正则表达式就能判断出来了。欢迎分享,转载请注明来源:内存溢出
评论列表(0条)