久久机这里只有精品,国产69精品一区二区亚洲孕妇,91精品国产综合久久婷婷香蕉,午夜久久久久久电影

最新活動:電腦PC端+手機(jī)端+微網(wǎng)站+自適應(yīng)網(wǎng)頁多模板選擇-建站388元起價!!!
當(dāng)前位置:主頁 > 網(wǎng)站建設(shè) > sql server 入門語句總結(jié)建站知識

sql server 入門語句總結(jié)建站知識

時間:2023-05-24 08:05:24 閱讀: 文章分類: 網(wǎng)站建設(shè) 作者: 網(wǎng)站編輯員

導(dǎo)讀:1建站知識本文記錄了一些SQL server 最基礎(chǔ)的一些常用語句,希望可以對你有些幫助網(wǎng)站建設(shè)制作網(wǎng)站建設(shè)哪家好。

網(wǎng)站建設(shè)制作網(wǎng)站建設(shè)哪家好

對于數(shù)據(jù)庫來說多多少少要掌握一點,首先基本的SQL語句要了解。下面來總結(jié)一些入門級別的SQL語句。

create相關(guān)

•show database; 顯示出現(xiàn)有的數(shù)據(jù)庫•use database_x; 現(xiàn)在要使用數(shù)據(jù)庫database_x•create table coffee (id int(5) not null,coffee_name varchar(25)); 創(chuàng)建一張表,包含id和coffee_name兩個字段•alter table coffee add taste varchar(10); 增加新的一列•insert into coffee (id,coffee_name,taste,rank) value ("1","BlueMountain",“well”,“5”); 插入數(shù)據(jù)•show columns from cof網(wǎng)站seo優(yōu)化培訓(xùn)fee; 查看表結(jié)構(gòu)•show create table coffee; 查看表信息,包括建表語句•alter table student rename ss; 改變表名•alter table ss drop mark; 刪除表ss中mark列select語句

•select * from coffee where; 查詢出i個業(yè)網(wǎng)站建設(shè)公司d=1的所有信息•select coffee_name from coffee where; 查詢出id=2的coffee name•select * from club where id between "1" and "3"; 查詢出id=1到3的條目•select * from club where or; 查詢出id=1和id=3這兩個條目•select club_name from club where mark>50; 查詢出mark大于50的club•select club_name from club where mark not between 48 and 50; 查詢mark不在48與50之間的club&#seo網(wǎng)站排名優(yōu)化軟件8226;select * from club where id in("1","3","4"); 查詢id=1,3,4的條目•select * from club where id not in("1","3","4");•select * from club where name like "M%r"; 通配符%表示任意長度的字符(可以是0,漢字為兩個字符)•select * from club where name like "M_r"; _表示單個字符•select * from club where id in("1","3","4") and mark>50; 多重查詢•select * from club order by mark desc; 按照mark降序排列(desc:降序,usc:升序)數(shù)量查詢相關(guān)

•select count(*) from club; 查詢club中有多少條記錄•select count(distinct mark) from club; 不同分?jǐn)?shù)的有多少條記錄•select sum(mark) from club; 積分總和•select avg(mark) from club; 平均積分•select max(mark) from club; 最高積分•select min(mark) from club; 最低積分update語句

•update club set mark=mark-8 where; id=1的俱樂部積分罰8分delete語句

•delete from club where; 刪除id=001的俱樂部信息以上語句都是SQL語句增刪改查最基本的部分,屬于入門級別,一定要掌握。

相關(guān)網(wǎng)站建設(shè)制作網(wǎng)站建設(shè)哪家好。

關(guān)鍵詞標(biāo)簽: 入門 語句

聲明: 本文由我的SEOUC技術(shù)文章主頁發(fā)布于:2023-05-24 ,文章sql server 入門語句總結(jié)建站知識主要講述語句,入門,sql server 入門語句總結(jié)建站知識1網(wǎng)站建設(shè)源碼以及服務(wù)器配置搭建相關(guān)技術(shù)文章。轉(zhuǎn)載請保留鏈接: http://www.bifwcx.com/article/web_6444.html

我的IDC 網(wǎng)站建設(shè)技術(shù)SEOUC.COM
專注網(wǎng)站建設(shè),SEO優(yōu)化,小程序設(shè)計制作搭建開發(fā)定制網(wǎng)站等,數(shù)千家網(wǎng)站定制開發(fā)案例,網(wǎng)站推廣技術(shù)服務(wù)。
  • 5000+合作客服
  • 8年從業(yè)經(jīng)驗
  • 150+覆蓋行業(yè)
  • 最新熱門源碼技術(shù)文章

    主站蜘蛛池模板: 阿城市| 调兵山市| 漳浦县| 昌宁县| 青浦区| 延寿县| 大同县| 额尔古纳市| 常山县| 定远县| 洛扎县| 建宁县| 家居| 韶山市| 克山县| 新余市| 南投市| 辰溪县| 平陆县| 寿宁县| 自贡市| 清水县| 尤溪县| 天长市| 蓬溪县| 九寨沟县| 苗栗县| 宁晋县| 东城区| 四平市| 湘西| 永昌县| 宜君县| 谷城县| 景德镇市| 肃宁县| 武功县| 惠安县| 乡城县| 佳木斯市| 竹北市|