sql判断数据库类型数据_SQL数据类型

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)

  1. Numeric data type:

    数值数据类型

    It includes datatypes like

    它包括类似的数据类型

    int, tinyint, bigint, float, real, etc.

    int , tinyint , bigint , float , real等。

  2. Date and Time data type:

    日期和时间数据类型

    It includes datatypes like

    它包括类似的数据类型

    Date, Time, Datetime, etc.

    日期 , 时间 , 日期时间等等

  3. Character and String datatype:

    字符和字符串数据类型

    It includes data types like

    它包括类似的数据类型

    char, varchar, text, etc.

    char , varchar , text等。

  4. Unicode character/string datatypes:

    Unicode字符/字符串数据类型

    It includes datatypes like

    它包括类似的数据类型

    nchar, nvarchar, ntext, etc.

    nchar , nvarchar , ntext等。

  5. Binary datatype:

    二进制数据类型

    It includes datatypes like

    它包括类似的数据类型

    binary, varbinary, etc.

    二进制 , varbinary等

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值