<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                ## 數據表操作 注意 : 對表的操作必須要選定數據庫. #### 創建數據表 ~~~ create table 表名 ( 字段名 字段類型 [字段屬性], 字段名 字段類型 [字段屬性], ... ) [表選項]; ~~~ ~~~ create table class( id int zerofill auto_increment primary key, name char(20) not null, age tinyint unsigned not null ) charset utf8; ~~~ #### 復制已有表結構(只復制結構,不復制數據) ~~~ create table 新表名 like 需要復制結構的表名; ~~~ #### 顯示所有表 ~~~ show tables; ~~~ #### 顯示表結構 ~~~ desc 表名; +-------+---------------------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-------+---------------------------+------+-----+---------+----------------+ | id | int(10) unsigned zerofill | NO | PRI | NULL | auto_increment | | name | char(20) | NO | | NULL | | | age | tinyint(4) | NO | | NULL | | +-------+---------------------------+------+-----+---------+----------------+ ~~~ * Field : 字段名稱. * Type : 字段類型. * Null : 是否允許未空,yes表示允許. * Key : 索引. * Default : 默認值, NULL表示默認為NULL. * Extra : 額外屬性. #### 顯示表創建語句 ~~~ show create table 表名; ~~~ #### 修改表屬性(表屬性就是engine,charset,collate) ~~~ alter table class 如: alter table class engine innodb,charset utf8; ~~~ #### 修改表名 ~~~ rename table 舊表名 to 新表名; ~~~ #### 新增字段 ~~~ alter table 表名 add 字段名 字段類型 [字段屬性] [位置]; 如: alter table 表名 add age tinyint not null unsigned comment '年齡' after height; 在表中height字段后面添加age字段無符號,微整型. ~~~ #### 修改字段名(修改字段名一定要就會清空字段屬性,所以連字段屬性也要設置,不要以為僅僅修改表名就行了) ~~~ alter table 表名 change 舊字段名 新字段名 字段屬性 新位置; ~~~ #### 修改字段類型/屬性 ~~~ alter table 表名 modify 字段名 字段屬性 [位置]; ~~~ #### 刪除字段 ~~~ alter table 表名 字段名; ~~~ #### 刪除表 ~~~ drop table 表1,表2; ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看