數(shù)據(jù)庫系統(tǒng)由哪幾部分組成 在關(guān)系數(shù)據(jù)庫標(biāo)準(zhǔn)語言SQL中,實(shí)現(xiàn)數(shù)據(jù)檢索的語句命令是什么?
在關(guān)系數(shù)據(jù)庫標(biāo)準(zhǔn)語言SQL中,實(shí)現(xiàn)數(shù)據(jù)檢索的語句命令是什么?Select query statement語法:Select[all | distinct]< target list express
在關(guān)系數(shù)據(jù)庫標(biāo)準(zhǔn)語言SQL中,實(shí)現(xiàn)數(shù)據(jù)檢索的語句命令是什么?
Select query statement
語法:Select[all | distinct]< target list expression>[as column name][,< target list expression>[as column name]…]from< table name>[,< table name>
][where< conditional expression>[和|或< conditional expression>…
][group by column name[具有< conditional expression>
[按列名排序[ASC | desc>
說明:[all | distinct]all:全部;distinct:排除重復(fù)行
< target list expression>;AVG、count、sum、min、Max、operator等可用于字段
<條件表達(dá)式>謂詞
比較=,>,<,>=,<=,!=,<>,
確定介于和之間的范圍,而不是介于和之間
確定集合在,而不是在
字符匹配像(“%”匹配任意長度,“匹配一個(gè)字符,而不是像
null為null,不為null
子查詢any,all,exists
集合查詢Union,intersect,minus
多個(gè)條件and,or,不
對(duì)查詢結(jié)果進(jìn)行分組
][having<條件表達(dá)式>]對(duì)篩選條件進(jìn)行分組
][order by column name[ASC | desc>]對(duì)查詢結(jié)果進(jìn)行排序;ASC:升序desc:降序