K3修改欄位名
在K3的BOS中,自定義欄位之後我們往往會修改欄位名,便於記憶和理解,但是修改欄位名之後,只是資料庫中的欄位名被修改了,BOS中的欄位標識並沒有被修改,可以通過以下語句將標識和欄位名改成一致。
select * from icclasstableinfo where fkey <> ffieldname and fclasstypeid >= 200000000
and ffieldname not in ('fentryid','fid','findex','fname','fnumber')
and fkey not like 'FBaseProperty%'
update icclasstableinfo set fkey = ffieldname, FDescription = '1' where fkey <> ffieldname and fclasstypeid >= 200000000
and ffieldname not in ('fentryid','fid','findex','fname','fnumber')
and fkey not like 'FBaseProperty%'
update icclasstableinfo set fkey = ffieldname where fkey <> ffieldname and fclasstypeid >= 200000000
and ffieldname not in ('fentryid','fid','findex','fname')
and fkey not like 'FBaseProperty%'
update ICClassTableInfo set FFont = 'FontName=微軟雅黑|FontSize=11|FontBold=False|FontItalic=False|'
where FClassTypeID >= 200000000