我有两张桌子Alpha_Setting
,Beta_View
如下所示,
Alpha_Setting
:
ID ( Sequence )
VIEW_ID
VIEW_TYPE
VIEW_VALUE
Beta_View
ID
VIEW_NAME
VIEW_TYPE
VIEW_CHECK
我想从in 中Beta_View
插入多个 ID ,我应该如何更正我的 SQLVIEW_ID
Alpha_Setting
insert into alpha_setting
('',
(select ID from beta_view where view_type = 'HERO' and (view_name = 'GREEN-All' or view_name = 'GREEN-New'),
'super_power',
'1000000');