create table emp (
empno int(4) primary key,
ename varchar(10),
job varchar(10),
hiredate date,
sal float(7,2)
)
SELECT * FROM `tableA` WHERE LENGTH(`row_name`)<>CHARACTER_LENGTH(`row_name`)这样就能找出含有中文的记录了;如果查找全英文的记录,长度是相等的,把“<>”换成“=”就可以了,即
SELECT * FROM `tableA` WHERE LENGTH(`row_name`)=CHARACTER_LENGTH(`row_name`)
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)