PIXNET Logo登入

KwCheng's blog

跳到主文

Blog for Computer Science ...

部落格全站分類:圖文創作

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 3月 01 週四 201211:24
  • SQL - char and varchar

char 以及varchar 都是用來儲存字元 , 字串的type , 
不同點在於 , char在儲存時是固定長度 , 而varchar則是可以變動長度來進行儲存(但不可大於我們所設的limit)
varchar stands for "Variation Character" .
舉例來說 , 假使我們要儲存 "hello"這個word , 而在char與varchar的limit都設定為10個bytes , 
(繼續閱讀...)
文章標籤

JerryCheng 發表在 痞客邦 留言(0) 人氣(35)

  • 個人分類:SQL
▲top
  • 2月 27 週一 201222:06
  • SQL - MySQL

MySQL is a Relational SQL database management system , and it is open source software.
Relational database means that all the data is stored into different tables 
and relations are established using primary keys or other keys known as foreign keys.
(繼續閱讀...)
文章標籤

JerryCheng 發表在 痞客邦 留言(0) 人氣(7)

  • 個人分類:SQL
▲top
  • 2月 27 週一 201221:35
  • SQL - What is SQL

SQL ArchitectureSQL stands for Structured Query Language , it is a database computer language 
designed for retrieval and management of data in relational database.
All relational database management system like MySQL , MS Access , Oracle , and SQL server use SQL
(繼續閱讀...)
文章標籤

JerryCheng 發表在 痞客邦 留言(0) 人氣(17)

  • 個人分類:SQL
▲top
  • 2月 27 週一 201215:05
  • SQL - Primary key

在database中 , 我們通常會需要設定一個key來做為每個紀錄的辨識 , 
而這樣的key , 我們就稱為Primary key.
Primary可以一個 , 也可以多個欄位聯合來做為一個Primary key.
在MySql中 , Primary key的設定如下:
(繼續閱讀...)
文章標籤

JerryCheng 發表在 痞客邦 留言(0) 人氣(547)

  • 個人分類:SQL
▲top
  • 2月 26 週日 201201:05
  • MySql - Create a new Account

First , we must connect to database by using root account.
# mysql -u root -p
Then , we can create a new account for other people.
mysql> grant all privileges on Mydb.* to user01@localhost IDENTIFIED BY '12345678' ; 
(繼續閱讀...)
文章標籤

JerryCheng 發表在 痞客邦 留言(0) 人氣(24)

  • 個人分類:SQL
▲top
  • 2月 26 週日 201200:59
  • MySql - 修改密碼

修改Mysql的密碼 , 主要有以下兩個步驟 , 
1 . 連線Mysql
#mysql -u root -p root   // user為root , password為root
(若只輸入#mysql -u root -p , 則登入後會詢問密碼)
(繼續閱讀...)
文章標籤

JerryCheng 發表在 痞客邦 留言(0) 人氣(920)

  • 個人分類:SQL
▲top
  • 11月 23 週三 201120:51
  • SQL

1. in  , 
example : select * from monday where category in('3')
選出在monday這個資料表中category = 3 的資料.
 
(繼續閱讀...)
文章標籤

JerryCheng 發表在 痞客邦 留言(0) 人氣(18)

  • 個人分類:SQL
▲top
1

個人資訊

JerryCheng
暱稱:
JerryCheng
分類:
圖文創作
好友:
累積中
地區:

熱門文章

  • (126)Matlab - 內建變數
  • (9,406)notepad++ - 使用notepad++對文字進行轉碼
  • (444)Mathematics - 判斷point是否在triangle內
  • (34,773)Cpp - ifstream (read file) - 開檔 & 讀檔
  • (66)Solaris - svcs command

文章分類

toggle Software (5)
  • Notepad++ (1)
  • Graphviz (0)
  • Windows (1)
  • Eclipse (8)
  • Sloaris (5)
toggle Programming (11)
  • my_c_lib (7)
  • Shell programming (12)
  • C / Cpp (75)
  • Python (9)
  • Html/CSS (2)
  • JavaScript (18)
  • JSP (4)
  • Matlab (13)
  • PHP (1)
  • SQL (7)
  • Java (59)
toggle Information Retrieval (2)
  • Information Retrieval (7)
  • IR - Lemur (2)
  • Solaris (3)
  • Mathematics (4)
  • computer science (4)
  • Linux (17)
  • Statistics (1)
  • 未分類文章 (1)

最新文章

  • python - time
  • python - thread
  • Javascript - class
  • shell - while loop
  • expect - sftp example
  • javascript injection
  • [轉錄] ls color setting
  • python - inheritance & template pattern
  • sorting by value of dictionary
  • Browse all elements of array

動態訂閱

文章精選

文章搜尋

誰來我家

參觀人氣

  • 本日人氣:
  • 累積人氣: