幾米廣場
棲蘭神木園區
SELECT ORDER_DATE, PRODUCT_ID, LAG(ORDER_DATE) over (ORDER BY ORDER_DATE) AS PREVIOUS_RECORD, LEAD(ORDER_DATE) over (ORDER BY ORDER_DATE) AS NEXT_RECORD FROM PRODUCT WHERE PRODUCT_ID = 1000;
SELECT to_char(last_day(to_date('20200905', 'YYYYMMDD')), 'YYYYMMDD') as last_day FROM DUAL ;
SELECT (last_day(to_date('20200905', 'YYYYMMDD')) - to_date('20200905', 'YYYYMMDD')) as Days_Left FROM DUAL ;
powershell -command "& { (New-Object Net.WebClient).DownloadFile('https://docs.google.com/spreadsheets/d/xxxxx/export?format=xlsx', 'src/main/resources/source/batchConfigFile.xlsx') }"
curl -L "https://docs.google.com/spreadsheets/d/xxxxx/export?format=xlsx" > src/main/resources/source/batchConfigFile.xlsx
PROCEDURE SP_RESET_SEQUENCE AS seq_exists VARCHAR2(1) := 'T'; BEGIN SELECT CASE WHEN COUNT(*) > 0 THEN 'T' ELSE 'F' END INTO seq_exists FROM all_sequences WHERE sequence_name = 'SEQ_TEST' AND sequence_owner = 'TEST' ; IF seq_exists = 'T' THEN execute immediate 'DROP SEQUENCE TEST.SEQ_TEST'; END IF; execute immediate 'create sequence TEST.SEQ_TEST start with 1 increment by 1 MAXVALUE 9999 cycle'; END SP_RESET_SEQUENCE;
FUNCTION FN_GET_BIZ_COD (i_biz_cod IN VARCHAR2)
RETURN VARCHAR2 IS o_result VARCHAR2(2) := '';
BEGIN
CASE i_biz_cod
WHEN '01' THEN o_result := ' P';
WHEN '02' THEN o_result := ' S';
WHEN '03' THEN o_result := ' 8';
WHEN '04' THEN o_result := ' 3';
WHEN '05' THEN o_result := ' 8';
WHEN '06' THEN o_result := '11';
WHEN '07' THEN o_result := ' 6';
END CASE;
RETURN o_result;
END FN_GET_BIZ_COD;
FUNCTION FN_GET_BIZ_COD (i_biz_cod IN VARCHAR2)
RETURN VARCHAR2 IS o_result VARCHAR2(2) := '';
BEGIN
CASE i_biz_cod
WHEN '01' THEN o_result := ' P';
WHEN '02' THEN o_result := ' S';
WHEN '03' THEN o_result := ' 8';
WHEN '04' THEN o_result := ' 3';
WHEN '05' THEN o_result := ' 8';
WHEN '06' THEN o_result := '11';
WHEN '07' THEN o_result := ' 6';
ELSE o_result := '';
END CASE;
RETURN o_result;
END FN_GET_BIZ_COD;
=concatenate(char(34), A1, char(34))
tr.odd td.detail { background-color: #eaeaea; }
java -jar "C:\schemaspy\schemaSpy_5.0.0.jar" ^ -dp "C:\schemaspy\ojdbc6.jar" ^ -t orathin ^ -db TEST_DB ^ -s ap_tax ^ -host localhost ^ -port 1521 ^ -u system ^ -p password ^ -schemas "ODS,TS" ^ -charset UTF-8 ^ -o "C:\schemaspy\schema_doc" ^ -norows -hq -css "C:\schemaspy\schemaSpy.css" ^