select id,newscatid,title,news_catpath,time from biz_news where news_catpath regexp '0018'
中regexp什么意思?

解决方案 »

  1.   

    就像一楼所说,是正式表达,但是很少这么用,如果直接找‘0018’对应的行,直接用:   select id,newscatid,title,news_catpath,time from biz_news where news_catpath = '0018'就行;如果要查含有'0018'的行,可以用下面语句:  select id,newscatid,title,news_catpath,time from biz_news where news_catpath like "%0018%",%代表一个或多个字符