注釋
/* 多行注釋 */
# 單行注釋
-- 單行注釋(注意:兩個但橫線后面必須加空格)
資料型別
1.整形
? tinyint、smallint、mediumint、int、bigint
? 小整數值 大整數值 大整數值 大整數值 極大整數值
2.浮點型
? float、double
3.小數型
? decimal (常用:保證資料不丟失)
? 如:100.32-----》decimal(5,2)
4.字符型
1.char
2.varchar
3.text
4.blob
5.enum 列舉 (多選一)
6.set (多選多)
5.日期和時間
1.year
2.date
3.time
4.datetime(5.5沒有)
5.timestamp 時間戳
空值 null 做為賦值可以用 = 作為條件用is null進行判斷
非空 is not null 判斷非空條件
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/103139.html
標籤:MySQL
