zoukankan      html  css  js  c++  java
  • sql server使用的相关基础知识

    1、表的管理--表和列的命名

    • 必须以字母开头
    • 长度不能超过128字符
    • 不要使用sql server的保留字
    • 只能使用如下字符A-Z,a-z,0-9,$,#,_等等

    2、表的管理--支持的数据类型

    • 字符型

    char                定长,最多8000字符(非unicode编码)

    char(10)         长度为10个字符,少的会用空格补全

    varchar           变长,最大8000字符

    varchar(10)    最大10字符,长度根据内容变化,可以节省空间

    ntext               可变长度字符unicode数据的最大长度为230-1(1073741823)个字符

    text                 可变长度字符非unicode数据的最大长度为231-1(2147483647)个字符

    • 数字型

     bit               范围0-1

    int                范围-231-(231-1)

    bigint           范围-262-(262-1)

    float             存放小数,不推荐使用

    numeric       小数

  • 相关阅读:
    数据类型
    python安装
    计算机基础
    Ajax--1
    ASP.net+MVC--2
    More lumber is required
    History Grading
    strcmp() Anyone?
    How Many Points of Intersection?
    Remember the Word
  • 原文地址:https://www.cnblogs.com/Pinapple/p/7086323.html
Copyright © 2011-2022 走看看