开发者

use of in Keyword IN keyword in Query

开发者 https://www.devze.com 2022-12-12 14:28 出处:网络
select * from resource 开发者_高级运维where ResourceID= 1 and ResourceKeyword in(gallery 1,1980)

select * from resource 开发者_高级运维 where ResourceID= 1 and ResourceKeyword in(gallery 1,1980)

I have an table called resource with columns ResourceID, ResourceKeyword

ResourceKeyword can contain multiple values when ever I am using this query

I get an syntax error

what is syntax to solve it

thank you


Random guess, string delimiters

select *
from resource
where ResourceID= 1 and ResourceKeyword in('gallery 1','1980')
0

精彩评论

暂无评论...
验证码 换一张
取 消