建表
create table a
(
num text,
name nvarchar(10)
)
插入
insert into a
select '0456464','张三' union all
select '4646135','李四'
查询
select * from a
where num like'0*'
结果
什么都没有,应该有0456464号码呀
求解啊,谢谢
------解决方案--------------------
字符串类型
不定长用varchar
定长用char
------解决方案--------------------
select * from a
where num like'0%'
------解决方案--------------------
通配符用錯了.
select * from a
where num like'0%'