feat: 日付取得ストアドファンクションをsrc07に作成
This commit is contained in:
parent
cad2c94ff7
commit
a406715659
8
rds_mysql/stored_procedure/src07/get_syor_date.sql
Normal file
8
rds_mysql/stored_procedure/src07/get_syor_date.sql
Normal file
@ -0,0 +1,8 @@
|
||||
-- A5M2で実行時に[SQL] - [スラッシュ(/)のみの行でSQLを区切る]に変えてから実行する
|
||||
-- 処理日取得(date型)
|
||||
CREATE FUNCTION src07.get_syor_date()
|
||||
RETURNS date DETERMINISTIC
|
||||
BEGIN
|
||||
RETURN (SELECT STR_TO_DATE(syor_date,'%Y%m%d') FROM src07.hdke_tbl);
|
||||
END
|
||||
;
|
||||
Loading…
x
Reference in New Issue
Block a user