我用SUBSTR()不行。
5 个解决方案
#1
1.substring
2.left
2.left
#2
subsrting(字符串,起始位,截取长度)
#3
是不是这样的:
select *
from a,b
where a.code=substring(b.workcode,1,6)
select *
from a,b
where a.code=substring(b.workcode,1,6)
#4
1.select *
from a,b
where a.code=substring(b.workcode,1,6)
2.select *
from a,b
where a.code=left(b.workcode,6)
from a,b
where a.code=substring(b.workcode,1,6)
2.select *
from a,b
where a.code=left(b.workcode,6)
#5
select *
from a,b
where a.code=substring(b.workcode,1,6)
select *
from a,b
where a.code=left(b.workcode,6)
from a,b
where a.code=substring(b.workcode,1,6)
select *
from a,b
where a.code=left(b.workcode,6)
#1
1.substring
2.left
2.left
#2
subsrting(字符串,起始位,截取长度)
#3
是不是这样的:
select *
from a,b
where a.code=substring(b.workcode,1,6)
select *
from a,b
where a.code=substring(b.workcode,1,6)
#4
1.select *
from a,b
where a.code=substring(b.workcode,1,6)
2.select *
from a,b
where a.code=left(b.workcode,6)
from a,b
where a.code=substring(b.workcode,1,6)
2.select *
from a,b
where a.code=left(b.workcode,6)
#5
select *
from a,b
where a.code=substring(b.workcode,1,6)
select *
from a,b
where a.code=left(b.workcode,6)
from a,b
where a.code=substring(b.workcode,1,6)
select *
from a,b
where a.code=left(b.workcode,6)