Powerdesigner中表導出sql語句關於字段注釋亂碼的問題


問題說明

注釋中的漢字都變成了?,應該是編碼的問題。
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'????????(MultiRoomInfo)????????',
'user', @CurrentUser, 'table', 'MultiRoomInfoDetail'
go

解決方法

修改Format中的編碼類型

使用DataBase Generation批量導出多表時

DataBase Generation->Format->Text formatting->Encoding,
選擇 簡體中文GB2312(Cp20936) 項即可。或選項名不一樣,反正是GB2312.

使用Table Properrties表的屬性導出單表時

Table Properrties->Preview->Show Generation Options(Ctrl+W)->Format->Text formatting->Encoding,
選擇 簡體中文GB2312(Cp20936) 項即可。或選項名不一樣,反正是GB2312.

 修改效果

declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'功能教室使用登記(MultiRoomInfo)中的學生使用記錄',
'user', @CurrentUser, 'table', 'MultiRoomInfoDetail'
go

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM