Wiki » 历史记录 » 版本 2
星 yan, 2026-09-23 06:44
| 1 | 2 | 星 yan | # SQL |
|---|---|---|---|
| 2 | ``` |
||
| 3 | ``` sql |
||
| 4 | CREATE TABLE [dbo].[hyx_guarantee_account_amount] ( |
||
| 5 | [id] bigint IDENTITY(1,1) NOT NULL, |
||
| 6 | [account_id] bigint, |
||
| 7 | [create_time] datetime NULL, |
||
| 8 | [update_time] datetime NULL, |
||
| 9 | [deleted] bigint NULL, |
||
| 10 | [company_name] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL, |
||
| 11 | [total_amount] float DEFAULT 0 NULL |
||
| 12 | ) |
||
| 13 | GO |
||
| 14 | |||
| 15 | ALTER TABLE [dbo].[hyx_guarantee_account_amount] SET (LOCK_ESCALATION = TABLE) |
||
| 16 | GO |
||
| 17 | |||
| 18 | EXEC sp_addextendedproperty |
||
| 19 | 'MS_Description', N'企业名称', |
||
| 20 | 'SCHEMA', N'dbo', |
||
| 21 | 'TABLE', N'hyx_guarantee_account_amount', |
||
| 22 | 'COLUMN', N'company_name' |
||
| 23 | GO |
||
| 24 | |||
| 25 | EXEC sp_addextendedproperty |
||
| 26 | 'MS_Description', N'账户总金额', |
||
| 27 | 'SCHEMA', N'dbo', |
||
| 28 | 'TABLE', N'hyx_guarantee_account_amount', |
||
| 29 | 'COLUMN', N'total_amount' |
||
| 30 | GO |
||
| 31 | |||
| 32 | ``` |
||
| 33 | |||
| 34 | ``` |