PowerDesigner to create a copy of the table to create table statement SQLSERVER create a database using a query to create a table and add data

PowerDesigner Create a table;

1. Double-click to open the PowerDesigner  

 

 

 2. Double-click to open the Create model

 

 3 Left-click on the Model types, then click the Physical Data model model name or use English alphabet, and then click OK 'to build

 

4. Tabel the box on the right (solid modeling) and a blank area left in the middle

 

 

 5. will use the edit box to edit

 

 6. Double-click the edit box for editing, open the edit box for editing, enter the desired name Name edits can use Chinese. But Code To use camel notation in English or letters, and then click Apply.

 

7. Click Co'lumns content editing To enter, enter the content you want to edit, then click Apply

 

 

Notes;

     int; int is an integer

     nvarchar (4); four characters can be input, can also enter letters 4, but up to four 

       varchar (4); enter four word lines, two characters can be entered

     'bit; represents the smallest unit of information

     decimal; represents a numerical value with decimal, decimal (18,2) total length of 18 bits. Point 16 in front, two behind the site 

     datetime; type time

     text; document

 

8. Double-click the arrow points to the place, will come to an edit box to the bottom right corner of ledentity option is selected, click Apply and click OK;

 

9. Click Preview, Copy green code for code {Code does not contain green)

 

 

After the above steps, after the copy can be closed owerDesigner, the following start operation

SQLSERVER

Create a database using Query to create a table and add data

 

 1. Open SQLSERVER .

 

 

2. login ID; click on the link, note that the server name to determine the account password, and then click Connect.

 

 

 

3. Right-click the database, click New data, enter the name of the letter or the English; and then identified with name {PowerDesigner data file name as required}

 

4. Click the above refresh, and then select the new data xxi3 right file, and then click New Query above.

 

 

 

 

5.点开后点击空白区域,然后复制PowerDesigner复制上的程序;复制后点击执行,如果出现命令已成功完成,就OK了,

 

 

 

7.打开XX3文件,点击表文件,选中dobo。T-User,右键打开右键点击{编辑前200行(E)}进行编辑。 需注意年月日是用-——隔开的,编辑后选择Ctrl+shift+s保存。

 

 

 

 保存后就完成了PowerDesigner创建表 拷贝创建表语句 SQLSERVER创建数据库 使用查询 创建表 并且添加数据。

 

Guess you like

Origin www.cnblogs.com/yutang-wangweisong/p/11434165.html