sql判断数据库类型数据
SQL | 资料类型 (SQL | Data Types)
Just like other programming languages, facilities of defining data of various types are available in SQL also. SQL supports the following data types for the specification of various data-items or fields of a relation/table. In SQL, each column of the table is assigned a datatype which conveys the kind of value that will be stored in the column.
与其他编程语言一样, SQL中也提供了用于定义各种类型的数据的功能。 SQL支持以下数据类型来指定关系/表的各种数据项或字段。 在SQL中,表的每一列都分配有一种数据类型,该数据类型传达将存储在该列中的值的类型。
SQL数据类型的类型 (Types of SQL Data Types)
Numeric data type:
数值数据类型 :
It includes datatypes like
它包括类似的数据类型
int, tinyint, bigint, float, real, etc.
int , tinyint , bigint , float , real等。
Date and Time data type:
日期和时间数据类型 :
It includes datatypes like
它包括类似的数据类型
Date, Time, Datetime, etc.
日期 , 时间 , 日期时间等等
Character and String datatype:
字符和字符串数据类型 :
It includes data types like
它包括类似的数据类型
char, varchar, text, etc.
char , varchar , text等。
Unicode character/string datatypes:
Unicode字符/字符串数据类型 :
It includes datatypes like
它包括类似的数据类型
nchar, nvarchar, ntext, etc.
nchar , nvarchar , ntext等。
Binary datatype:
二进制数据类型 :
It includes datatypes like
它包括类似的数据类型
binary, varbinary, etc.
二进制 , varbinary等