发布网友 发布时间:2022-04-07 23:06
共4个回答
热心网友 时间:2022-04-08 00:35
SELECT FSTRUCTUREID FROM tinfopgm where FSTRUCTUREID LIKE ‘(select FSTRUCTUREID from tinfopgm where FNAME = '专项技术工程'追答字符串拼接 -------我是根据下边的测试了下 没测试出来~
MSSQL: 直接用+号
ORACLE:可以用 || 双竖线
另给你几个据说正确的like后面如何用select语句
(1)select * from tab_xn_company t where t.company_name like '%'||(select c.company_name from tab_xn_company c where c.company_id='1179')||'%';
(2)select * from r_user t where t.description like (select '%'||tt.supplier_name||'%' from crm_supplier_baseinfo tt where tt.supplier_id = '94581');
(3)select * from A, B where A.id = B.id and A.name like '%'||B.name||'%'
热心网友 时间:2022-04-08 01:53
SELECT FSTRUCTUREID FROM tinfopgm WHERE FNAME = '专项技术工程' AND FSTRUCTUREID LIKE 'AAAH%'热心网友 时间:2022-04-08 03:28
SELECT FSTRUCTUREID FROM tinfopgm WHERE FNAME = '专项技术工程' AND FSTRUCTUREID LIKE 'AAAH%'
热心网友 时间:2022-04-08 05:19
SELECT FSTRUCTUREID FROM tinfopgm WHERE FNAME = '专项技术工程' and FSTRUCTUREID LIKE 'AAAH%'