Data type: Difference between revisions

From LemonWiki共筆
Jump to navigation Jump to search
mNo edit summary
Line 4: Line 4:
* birth year  
* birth year  
** data type: int
** data type: int
** ex: 2012 ~ 1905
** ex: 1905 ~ 2013
** range/limit: 107 yeas old <ref> Sing-up form from outlook.com </ref>
** range/limit: 108 yeas old<ref> Range from 1905 ~ 2013 (108 yeas old) from the Sing-up form from outlook.com {{access| date=2013-02-04}} </ref><ref>[http://zh.wikipedia.org/wiki/%E6%9C%80%E5%B9%B4%E9%95%B7%E8%80%85 最年長者 - 維基百科,自由的百科全書]: 「根據金氏世界紀錄大全紀錄的最長壽者是活了122年的雅娜·卡爾曼特」</ref>





Revision as of 17:58, 4 February 2013

data type / 欄位型態

types of data

  • birth year
    • data type: int
    • ex: 1905 ~ 2013
    • range/limit: 108 yeas old[1][2]


  • IP(v4):
    • varchar(15)
    • ex: 255.255.255.255 [3]
    • range/limit:
  • IP range - Classless inter-domain routing (CIDR)[4]
    • 12 or 24 bytes (IPv4 and IPv6 networks)[5]
    • ex: 69.208.0.0/32
  • Chinese name:
    • 最長姓名有13個字 [6]
  • unix timestamp:
    • bigint(10) ;
    • ex: 1328664539
    • range/limit:
  • School ID defined by MOE at Taiwan / 學校代碼[7]
    • integer: 4(university) ~ 6
    • ex: 0001(國立政治大學)、373607(臺北市立華江國小)。前面可能有零。
    • range/limit:
  • 經緯度 (經度,緯度):
    • DECIMAL(18,12)[8] or FLOAT( 10, 6 )[9]
    • ex: 37.401724,-122.114646
    • range/limit:
  • 價錢/金額
    • DECIMAL(10,2)[10]
    • ex:
    • range/limit: 0.00 ~ 99999999.99
  • 台灣縣市欄位值 下拉式選單[11]
$city = array("基隆市", "台北市", "新北市", "桃園縣", "新竹市", "新竹縣", "苗栗縣", "台中市", 
        "彰化縣", "南投縣", "雲林縣", "嘉義市", "嘉義縣", "台南市", "高雄市", "屏東縣", "台東縣", "花蓮縣", 
        "宜蘭縣", "澎湖縣", "金門縣", "連江縣");
 (left blank intentionally)
* data
** data type
** ex:
** range/limit:

references

further reading