- 设置全局变量及它的生命周期
生命周期在创建变量——运行结束
Set Global Variable ${euNo} 9188
- sybase数据库string转date
SELECT CONVERT(date, ‘04/01/2023’, 101) AS date_column;
111:YYYY-MM-DD
101:MM/DD/YYYY
120:YYYY-MM-DD HH:MI:SS
121:YYYY-MM-DD HH:MI:SS.MMM
- sybase数据库 date转string
- STR_REPLACE(convert(varchar, billing_end_date, 111),‘/’,‘-’)
2045-01-11
10 mm-dd-yy
11 yy/mm/dd
12 yymmdd
101 mm/dd/yyyy
102 yyyy.mm.dd
103 dd/mm/yyyy
104 dd.mm.yyyy
105 dd-mm-yyyy
106 dd month yyyy
107 month dd,yyyy
108 hh:mi:ss
110 mm-dd-yyyy
111 yyyy/mm/dd
112 yyyymmd
- 升级后使用循需要自己先定义${i}
- 升级Python不支持LIKE ‘%1183395%’
- 可以用下面这几个替换
select * from stellr_async_task WHERE country_code ='US' and `action` ='Renew' and context_data LIKE '%1183395%'
替换方案
select * from stellr_async_task WHERE country_code ='US' and `action` ='Renew' and LOCATE('1183395',context_data)
select * from stellr_async_task WHERE country_code ='US' and `action` ='Renew' and context_data REGEXP '1183395'