zoukankan      html  css  js  c++  java
  • orcale字段

    ---数据类型   

    /*

    1  数字 number [小数,整数]

    number(5,3)表示总共5个数字,小数点后3个,最大值99.999

    number(5) 表示整数  最大值99999

    2  字符  char 定长字符  

       char(10)   如果没有达到10字符就用空格补充,他所占的大小总是10字符空间

       varchar2  变长字符和varchar类似  

       varchar2(10) 如果没有达到10个字符长度不用空格补充

       clob   大文本类型  

       文字很多,小说,简介,新闻内容

       blob  存入大数据文件  

       图片,压缩文件..

       

    3 时间  date       年月日 时分秒

    insert into student values(3001,'张三',1,to_date('2016-2-23','yyyy-MM-dd'),21,2001);

    create table grade(
    
    gid number(8,2) primary key,
    
    gname varchar2(30 byte) not null,
    
    did number(8) references department(did),
    
    classteacherid number(8) ,
    stid number(8) primary key,
    
    sname varchar2(30) not null,
    
    ssex varchar(2) default '1' check (ssex in ('1','0')),
    
    birth date,
    stid number(8) primary key,
    
    sname varchar2(30) not null,
    
    ssex varchar(2) default '1' check (ssex in ('1','0')),
    
    birth date,
    );
  • 相关阅读:
    PHP多进程(四) 内部多进程
    STL map and multimap
    Understanding Function Objects
    Working with Bit Flags Using STL
    STL Algorithms
    STL set and multiset
    Understanding Smart Pointers
    More Effective C++ 学习笔记(1)
    Adaptive Container: stack and queue
    第一个 Python 程序
  • 原文地址:https://www.cnblogs.com/SunshineKimi/p/10739024.html
Copyright © 2011-2022 走看看