DBMySQLSQLitePHPRubyRailsJS等的数据类型,因为我有时会忘记它们
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了DBMySQLSQLitePHPRubyRailsJS等的数据类型,因为我有时会忘记它们相关的知识,希望对你有一定的参考价值。
Data Types for DB, mysql, SQLite, php, Ruby, Rails, JS, etc. because I forget them sometimesfrom Ruby on Rails Guides: Migrations http://bit.ly/hFWjT0
from Rails Migrations http://bit.ly/hI5zpz
Data Types for DB, MySQL, SQLite, PHP, Ruby, Rails, JS, etc. ==== from Ruby on Rails Guides: Migrations http://bit.ly/hFWjT0 The types supported by Active Record are :primary_key, :string, :text, :integer, :float, :decimal, :datetime, :timestamp, :time, :date, :binary, :boolean. ==== from Rails Migrations http://bit.ly/hI5zpz Migrations support all the basic data types: string, text, integer, float, datetime, timestamp, time, date, binary and boolean: string - is for small data types such as a title. text - is for longer pieces of textual data, such as the description. integer - is for whole numbers. float - is for decimals. datetime timestamp - store the date and time into a column. date time - store either the date only or time only. binary - is for storing data such as images, audio, or movies. boolean - is for storing true or false values.
以上是关于DBMySQLSQLitePHPRubyRailsJS等的数据类型,因为我有时会忘记它们的主要内容,如果未能解决你的问题,请参考以下文章