一月 2010
« 十二月   二月 »
 123
45678910
11121314151617
18192021222324
25262728293031

SQL中擷取字串

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

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

範例:取g.declno前兩字元

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

讀者也會看的其它文章:

留下您的足跡

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>