zoukankan      html  css  js  c++  java
  • sql语句操作表

    "create table mytable (m_id integer identity(1,1) primary key,m_class varchar(50) not null default 'AAA',m_int integer not null,m_numeric NUMERIC(6,2),m_money money not null default 0.00,m_memo text,m_date date default date(),m_boolean bit default yes,m_blob OLEObject,m_double double,m_float real)"
    '创建表
    'm_id integer identity(1,1) primary key自动编号字段并制作主键
    'm_class varchar(50) not null default 'AAA'文本型,长度50,非空,默认值:AAA
    'm_int integer not null数字,长整型,非空
    'm_numeric NUMERIC(6,2)数字,小数,精度6,数值范围2
    'm_money money not null default 0.00货币,必添字段(非空),默认0
    'm_memo text备注
    'm_date date default date()日期/时间,默认当前日期(年月日)
    "DROP TABLE link1"
    '删除表

    "select * into newaprain from oldaprain"'复制表
    "select * into newaprain from oldaprain where 1=0"'复制表的定义
    "ALTER TABLE link1 ADD COLUMN [order] integer default 0"
    '在表中添加字段
    "ALTER TABLE link1 DROP COLUMN [order]"
    '在表中删除字段

  • 相关阅读:
    RLP
    Merkle Patricia Tree (MPT) 树详解
    Patricia Tree
    Merkle Tree学习
    mongodb 范围查找
    mongodb _id 组成
    mongodb 时间戳转_id
    mongdi db _id 转时间戳
    js中的filter
    js中的filter
  • 原文地址:https://www.cnblogs.com/lykouyi/p/5687850.html
Copyright © 2011-2022 走看看