SET @motor_vehicle = ('vehicle','traffic');
select count(*) from '表' WHERE ‘字段’ in @motor_vehicle
这样子写报错了,如何定义一个列表结构的常量呢?
1
fuxkcsdn 2019-11-13 09:32:14 +08:00 via iPhone
用字符串拼接( concat )
|
2
gigantic222 2019-11-13 09:40:17 +08:00
|