廣告

2024 年 4 月
1234567
891011121314
15161718192021
22232425262728
2930  

彙整

SQL中擷取字串

SQL與法中直接擷取字串的函式使用 substring(原字串, 啟始取值位置, 欲取的字元數)

這裡與DELPHI的Copy用法一摸摸一樣樣~

範例:取g.declno前兩字元

cntc.cntcid = substring(g.declno,1,2)

讀者也會看的其它文章:

    You must be logged in to post a comment.