zoukankan      html  css  js  c++  java
  • sqlite

    数据库

                       con.Execute(string.Format(@"CREATE TABLE Category (
                                                    Id INTEGER PRIMARY KEY AUTOINCREMENT  NOT NULL,
                                                    Name  VARCHAR (50) NOT NULL,
                                                    Pid  INTEGER,  CreationTime datetime,
                                                    Sort  INT,
                                                    LastModificationTime datetime
                                                    );"));
                        con.Execute(string.Format(@"CREATE TABLE TableInfo (
                                                    Id INTEGER PRIMARY KEY AUTOINCREMENT  NOT NULL,
                                                    Name  VARCHAR (50) UNIQUE NOT NULL)
                                                    ;"));
                        con.Execute(string.Format(@"CREATE TABLE Column (
                                                    Id INTEGER PRIMARY KEY AUTOINCREMENT  NOT NULL,
                                                    Name  VARCHAR (50) ,
                                                    Text  VARCHAR (50) ,
                                                    TableId  INTEGER)
                                                    ;"));
                        con.Execute(string.Format(@"CREATE TABLE NumberInfo (
                                                    Id INTEGER PRIMARY KEY AUTOINCREMENT  NOT NULL,
                                                    Number  VARCHAR (50) UNIQUE NOT NULL,
                                                    OldPass  VARCHAR (50)   , 
                                                    NewPass  VARCHAR (50)   ,
                                                    Phone  VARCHAR (50),
                                                    MobileToken  VARCHAR (50),
                                                    FullName  VARCHAR (50),
                                                    IdCard  VARCHAR (50),
                                                    CommonIp  VARCHAR (50),
                                                    Mark  VARCHAR (50),
                                                    CategoryId  INTEGER,
                                                    Status  INT,
                                                    Sell BOOLEAN,
                                                    Rank INT,
                                                    CreationTime datetime,
                                                    LastModificationTime datetime,
                                                    Dnf                  VARCHAR (500),
                                                    IsSearchDnf          BOOLEAN       DEFAULT 0,
                                                    IsDeleteFriend       BOOLEAN       DEFAULT 0
                                                    );"));
                        con.Execute(string.Format(@"CREATE TABLE PhoneInfo (
                                                    Id INTEGER PRIMARY KEY AUTOINCREMENT  NOT NULL,
                                                    PhoneNumber  VARCHAR (50) UNIQUE NOT NULL,
                                                    ImSi  VARCHAR (50)   , 
                                                    CcId  VARCHAR (50)   , 
                                                    Pass  VARCHAR (50)   , 
                                                    Balance  VARCHAR (50)   ,
                                                    Type  INT,
                                                    State  INT, 
                                                    DirectoryId INTEGER,
                                                    Mark  VARCHAR (50),
                                                    CreationTime datetime,
                                                    LastModificationTime datetime
                                                    );"));
                        con.Execute(string.Format(@"CREATE TABLE Directory (
                                                    Id INTEGER PRIMARY KEY AUTOINCREMENT  NOT NULL,
                                                    Name  VARCHAR (50) NOT NULL,
                                                    Pid  INTEGER,  CreationTime datetime,
                                                    Sort  INT,
                                                    LastModificationTime datetime
                                                    );"));
  • 相关阅读:
    c++基类和派生类的框架
    从文件读入7个数并排序
    字符串复制函数-简单
    c++函数模板-简单
    用初始化列表解决常私有变量问题-简单
    分配和释放内存-简单
    结构体小程序-简单
    转化的力量
    初次创业需要注意的几点
    重生的2014下半年的起点
  • 原文地址:https://www.cnblogs.com/wangyinlon/p/13877089.html
Copyright © 2011-2022 走看看