| |

VerySource

 Forgot password?
 Register
Search
View: 886|Reply: 8

SQL Server field type enum fields

[Copy link]

1

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-2-22 16:30:01
| Show all posts |Read mode
Is there an enumerated field in the SQL SERVER field type?
How to achieve
Reply

Use magic Report

0

Threads

88

Posts

55.00

Credits

Newbie

Rank: 1

Credits
55.00

 China

Post time: 2020-5-3 19:15:01
| Show all posts
Can be customized type
Reply

Use magic Report

0

Threads

40

Posts

29.00

Credits

Newbie

Rank: 1

Credits
29.00

 China

Post time: 2020-5-9 15:30:01
| Show all posts
select t2.name from sysobjects t1, syscolumns t2
where t1.id = t2.id and t1.xtype = 'u' and t1.name = 'table name to enumerate fields'
order by t2.name
Reply

Use magic Report

0

Threads

211

Posts

108.00

Credits

Newbie

Rank: 1

Credits
108.00

 China

Post time: 2020-5-9 19:45:01
| Show all posts
Enumeration type

-
no
Reply

Use magic Report

0

Threads

40

Posts

29.00

Credits

Newbie

Rank: 1

Credits
29.00

 China

Post time: 2020-5-10 11:30:02
| Show all posts
Sorry, misunderstanding just now.
The enum type doesn't seem to be.
Has custom data type
Reply

Use magic Report

0

Threads

211

Posts

108.00

Credits

Newbie

Rank: 1

Credits
108.00

 China

Post time: 2020-5-10 12:45:01
| Show all posts
Custom data types are available
Reply

Use magic Report

0

Threads

211

Posts

108.00

Credits

Newbie

Rank: 1

Credits
108.00

 China

Post time: 2020-5-10 17:45:01
| Show all posts
sp_addtype
Create user-defined data types.

grammar
sp_addtype [@typename =] type,
    [@phystype =] system_data_type
    [, [@nulltype =] 'null_type']
    [, [@owner =] 'owner_name']

----
Check the online help yourself, I don't use much anyway
Reply

Use magic Report

0

Threads

20

Posts

19.00

Credits

Newbie

Rank: 1

Credits
19.00

 China

Post time: 2020-5-14 10:15:01
| Show all posts
The custom field type is based on the system field type,
It is not possible to create a custom field type that is not in the system field type
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-9-5 17:00:01
| Show all posts
The ms sql custom data type is a tasteless one, I didn't see any effect.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list