From:http://database.51cto.com/art/201203/323863.htmMany people on the web are consulting MySQL for Boolean types? The MySQL database does provide a Boolean type that can be written as a Boolean type bool or Boolean type Boolean, but does the MySQL
MySQL basics 06 data type (6) type conversion, mysql Data Type1.Cast () Usage
In MySQL, cast (value as target type) syntax can be used for conversion of most types.
Cast must be followed by left parentheses:
Mysql> select cast (123 as char );
+ ---
First, the literal value 1. StringA string is a sequence of characters that is caused by a single quotation mark ("') or double quotation mark ('" '). For example:‘a string‘"another string"If SQL Server mode is enabled for Nsi_quotes, you can refer
(i) data type test (1). Boolean type Bool/boolean and micro-integral tinyint a). To create a test table structure Root@localhost:test 05:12:49> CREATE TABLE boolean_test (ID INT not NULL auto_increment, -> Online_flag BOOL, -> Lock_flag BOOLEAN, ->
Boolean typeMySQL saves a Boolean value with 1 for true,0 representing False,boolean in MySQL with type tinyint (1),There are four constants in MySQL: True,false,true,false, which represent 1,0,1,0 respectively,Mysql> Select True,false,true,false;+--
This article lists the MySQL data type list, which consists of five main categories: integer type, floating-point type, String type, date type, and other data types, which are explained in detail in the following five data types. There are also the
* Operation of the library (increase and deletion check)I. System databaseView system library commands show databases1.information_schema:Virtual library, does not occupy disk space, storage is the database startup parameters, such as user table
Ing between Java data types and MySql Data Types [go], data types mysql
Type name
Display Length
Database Type
JAVA type
JDBC index (int)
Description
VARCHAR
L + N
VARCHAR
MySQL has a similar data type as SQL Server. Therefore, it is possible to ignore the same place as SQL Server and learn on the basis of SQL Server.first, the width of the whole type of displayMySQL data types are somewhat different from SQL Server
A long time not to write blog, has been busy in this school game has forgotten to update the blog. The new task starts again, we must prepare "2017 Chinese university student computer design competition software Service Outsourcing competition".
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.