sql初學者指南(第2版)
sql(structured query language)是用于和關系資料庫互動的主要語言。本書的目标是成為sql語言的一本有用的入門指南。
本書的另一個假想的書名是the logic of sql(《sql的邏輯》)。這是因為,和所有的計算機語言一樣,sql語言和冷冰冰、硬邦邦的邏輯而不是和英語詞彙更加相關。盡管如此,本書的書名中還是保留了language(語言)這個詞,這有幾方面的原因。
1.首先,sql中基于語言的文法和其他的計算機語言有所差別。和其他語言不同的是,sql使用了很多普通的詞彙,如where和from,作為其文法的關鍵字。
2.由于sql中嵌入了語言的本質精神,我們依次在本書的主題中強調了語言。通過本書,你将像學習英語一樣學習sql。本書按照從簡單到複雜的邏輯順序,介紹了sql關鍵字。實際上,這是試圖同時涉及語言和邏輯。
3.要學習任何的語言,人們必須通過聽和記來掌握構成語句基礎的實際詞彙。同時,必須了解那些具有某種含義的詞彙。在學習sql語言的時候,其含義大多數是和邏輯相關的。
4.堅持使用the language of sql而不是the logic of sql作為書名,其原因就是the language of sql更好聽一些。盡管這個書名對于一本計算機圖書來說還是有點文绉绉的,但我希望書名中出現language這個詞,能夠讓這個相當有趣的主題引發讀者特别的熱情。
<a href="https://yq.aliyun.com/articles/95783">1.1 sql是什麼</a>
<a href="https://yq.aliyun.com/articles/95786/">1.2 microsoft sql server、mysql和oracle</a>
<a href="https://yq.aliyun.com/articles/95792/">1.3 關系型資料庫</a>
<a href="https://yq.aliyun.com/articles/95794">1.4 主鍵和外鍵</a>
<a href="https://yq.aliyun.com/articles/95798">1.5 資料類型</a>
<a href="https://yq.aliyun.com/articles/95802/">1.6 空值</a>
<a href="https://yq.aliyun.com/articles/95804">1.7 sql的重要性</a>
<a href="https://yq.aliyun.com/articles/95807">1.8 小結</a>
<a href="https://yq.aliyun.com/articles/95815">2.1 一條簡單的select語句</a>
<a href="https://yq.aliyun.com/articles/95818">2.2 文法注釋</a>
<a href="https://yq.aliyun.com/articles/95824/">2.3 注釋</a>
<a href="https://yq.aliyun.com/articles/95831">2.4 指定列</a>
<a href="https://yq.aliyun.com/articles/95836">2.5 帶有空格的列名</a>
<a href="https://yq.aliyun.com/articles/95841">2.6 預覽完整select語句</a>
<a href="https://yq.aliyun.com/articles/95844">2.7 小結</a>