查询‘E’开头并且后八位都是数字的数据: select * from comm.pat_card where card_type_id=‘1’ and pat_card_no !~ ‘^E\d{8}$’