>백엔드 개발 >C++ >일반적인 SQL Server 데이터 형식에 해당하는 C#은 무엇입니까?

일반적인 SQL Server 데이터 형식에 해당하는 C#은 무엇입니까?

Susan Sarandon
Susan Sarandon원래의
2025-01-07 11:26:421050검색

What are the C# Equivalents for Common SQL Server Data Types?

SQL Server 데이터 유형 및 이에 상응하는 C# 데이터 유형

C#에는 Microsoft SQL Server에서 사용되는 데이터 유형에 해당하는 다양한 데이터 유형이 있습니다. 다음은 다양한 SQL Server 데이터 유형에 해당하는 항목을 보여주는 표입니다.

SQL Server Data Type C# Data Type
Exact Numerics
bigint Int64
numeric Decimal
bit Boolean
smallint Int16
decimal Decimal
smallmoney Decimal
int Int32
tinyint Byte
money Decimal
Approximate Numerics
float Double
real Single
Date and Time
date None
datetimeoffset None
datetime2 None
smalldatetime DateTime
datetime DateTime
time None
Character Strings
char None
varchar None
text None
Unicode Character Strings
nchar None
nvarchar None
ntext None
Binary Strings
binary Byte[]
varbinary Byte[]
image None
Other Data Types
cursor None
timestamp None
hierarchyid None
uniqueidentifier Guid
sql_variant Object
xml SqlXml
table None

위 내용은 일반적인 SQL Server 데이터 형식에 해당하는 C#은 무엇입니까?의 상세 내용입니다. 자세한 내용은 PHP 중국어 웹사이트의 기타 관련 기사를 참조하세요!

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.