Mailing List
Home
MySQL General - General MySQL discussion
MaxDB - Everything about MaxDB, formerly known as SAP DB
MySQL on Win32 - Runing MySQL on Windows 9x/Me/NT/2000/XP
Java Help - Mostly related to the MySQL Connector/J driver
ODBC - ODBC with the MySQL Connector/ODBC driver
Perl - Perl support for MySQL with DBI and DBD::mysql
MySQL++ - Programming with the C++ API to MySQL
Subjects
mysql openssl Question
mysql:it 's a db not a dbms how it 's possible?!
Does the binary log enabling affect the MySQL performances?
Strange behavior, Table Level Permission
FULLTEXT query format question
Preventing Duplicate Entries
Comparing and writing out BLOBS
Executing MySQL Commands From Within C Program
Can 't access mysql after kernel upgrade
Mysql 4 0 Oracle Stored Procedure Trigger Conversion
Downgrade Mysql from 4 to 3 23
MySQL Cluster Software
mysql test 4 1 fails with the gis test
ERROR 2002: Can 't connect to local MySQL server through socket
Getting Identity after INSERT
Update one field with more fields from another table
ERROR 1045: Access denied for user: 'root@localhost ' (Using
password: NO)
mysql have same function mthod as Oracle decode()
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
I 'm working on a library redesign, and need help

I 'm working on a library redesign, and need help

2004-06-07       - By Daniel Kasak

 Back
Reply:     1     2  

Dennis Gearon wrote:

> Please CC me, I am on digest.
>
> What is an int(11) as in the following table creation statement? I
> looked online at the documentation, and not only is the documentation
> MUCH different than the last time I looked at it, (been awhile), but I
> didn 't see anything related to a parameter to the size of an int field
> that looked like 11.
>
> BTW, why does the make of the definition below have backtick quotes on
> all names?
>
> CREATE TABLE calendar_events` (
> `eventID` int(11) NOT NULL auto_increment,
> `eventTitle` varchar(20) default NULL,
> `eventMessage` varchar(200) default NULL,
> `eventTime` time default NULL,
> `eventDate` date default NULL,
> PRIMARY KEY (`eventID`)
> ) TYPE=MyISAM;

As far as I know, the number in brackets eg int(11) is only used for
numeric fields when you are importing from a fixed-width text file, with
'load data infile '. In this case, the width of the fields is taken from
the number in brackets from the table definition. Pretty strange stuff
if you ask me. Anyway you can safely ignore it if you 're not importing
data from a fixed-width file. For more info see 'load data infile '.

The backticks are there to aid MySQL in parsing the string later in case
you have used reserved words or strange characters.

--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email: dkasak@(protected)
website: http://www.nusconsulting.com.au


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=mysql @(protected)