SELECT
*,'XXXXXXXX' as 'trainNo'
FROM
percartinfo
WHERE
dateAndTime LIKE CONCAT(<
SELECT
*,'XXXXXXXX' as 'trainNo'
FROM
percartinfo
WHERE
dateAndTime LIKE CONCAT(<
Oracle中Sql语句LIKE语句的语法格式是:select * from 表名 where 字段名 like 对应值(子串)
例:查询name字段中含有“林”字的
select * from 表名 where name LIKE‘%林%’
但是,我此次like关键字后面的对应值是一个变量,需要用select语句来实现的,尝试了多种方法都未能实现该功能,后来用来CONCAT 关键字
Powered By Z-BlogPHP 1.7.3
Copyright Your WebSite.Some Rights Reserved.