久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      MYSQL常用命令~-wx5c8510e246e86的博客-51CTO博客

      MYSQL常用命令~九周目

      安裝目錄

      數(shù)據(jù)庫目錄     /var/lib/mysql 配置文件     /usr/share/mysql (mysql.sercer命令及配置文件) 相關(guān)命令     /user/bin/(mysqladmin mysqldump命令) 啟動腳本     /etc/init.d/mysql(啟動腳本文件mysql的目錄)

      系統(tǒng)管理

      鏈接Mysql       mysql -h主機(jī)地址 -u用戶 -p密碼  修改密碼      給root添加密碼abc         mysqladmin -uroot -password abc     將密碼改為123         mysqladmin -uroot -pabc password 123

      庫操作

      創(chuàng)建數(shù)據(jù)庫      create database 數(shù)據(jù)庫名;  顯示所有數(shù)據(jù)庫      show databases;  刪除數(shù)據(jù)庫      drop database 數(shù)據(jù)庫;  鏈接數(shù)據(jù)庫      use 數(shù)據(jù)庫;  查看當(dāng)前使用的數(shù)據(jù)庫      select database;  查看當(dāng)前數(shù)據(jù)庫包含的表信息      show tables;

      表操作

      建表      create table 表名 (字段名1,類型,[字段名,類型]);  獲取表結(jié)構(gòu)      desc 表名;     show columns from 表名;  刪除表      drop table 表名;  插入數(shù)據(jù)     insert into 表名 [( <字段名1>[,..<字段名n > ])] values ( 值1 )[, ( 值n )]  查詢表中的數(shù)據(jù)     select <字段> from 表名 where 表達(dá)式;  查詢前幾行數(shù)據(jù)      select * from 表名 order limit 0,2;  刪除表中數(shù)據(jù)      delete from 表名 where 表達(dá)式;     delete from myclass where id=1;  修改表中數(shù)據(jù)      update 表名 set 字段 where 條件;  在表中增加字段      alter table 表名 add 字段 類型 其他;  更改表名      rename table 表名 to 新表名;  字段類型     1.INT[(M)] 型: 正常大小整數(shù)類型     2.DOUBLE[(M,D)] [ZEROFILL] 型: 正常大小(雙精密)浮點(diǎn)數(shù)字類型     3.DATE 日期類型:支持的范圍是1000-01-01到9999-12-31。MySQL以YYYY-MM-DD格式來顯示DATE值,但是允許你使用字符串或數(shù)字把值賦給DATE列     4.CHAR(M) 型:定長字符串類型,當(dāng)存儲時,總是是用空格填滿右邊到指定的長度     5.BLOB TEXT類型,最大長度為65535(2^16-1)個字符。     6.VARCHAR型:變長字符串類型  導(dǎo)入數(shù)據(jù)表     mysql < *.sql 

      共勉!

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號