add:http://www.cnblogs.com/xyxxs/p/4748708.html
问题 : sql如何使用正则取反
回答:
不使用正则
select * from a where id not like '_a%';
使用正则单字符
select * from a where id regexp '[0-9][^a]\..*';
使用正则字符串
??
问题 : sql如何使用正则取反
回答:
不使用正则
select * from a where id not like '_a%';
使用正则单字符
select * from a where id regexp '[0-9][^a]\..*';
使用正则字符串
??
没有评论:
发表评论