|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
(MySQL) creating table , VARCHAR (<<unlimited>>)
I'm creating a guestbook, and the messages will be saved in a database. But as I don't know how long the visitors message will be so I can't set a limit for VARCHAR. I'd like to have it as unlimited, how do I set it?
mysql_query ("create table news(date VARCHAR(20), sender VARCHAR(100), topic VARCHAR(50), msg VARCHAR(unlimited)") or die("err... wont work");
__________________
Fatal error on row 561: Couldn't access life - life isn't set Last edited by Kimppa : August 2nd, 2002 at 12:29 PM. |
|
#2
|
||||
|
||||
|
FYI - This belongs in the mysql forum...
The 'unlimited VARCHAR' type in MySQL is a TEXT column, and there are also different kinds of those available. For more info, see the manual. //NoXcuz
__________________
UN*X is sexy! who | grep -i blonde | date; cd ~; unzip; touch; strip; finger; mount; gasp; yes; uptime; umount; sleep |
|
#3
|
|||
|
|||
|
Ok, thank you.
Sorry for posting it on the wrong section, honestly I tried to look for a MySQL section but didn't see it. Heheh, see it now ![]() |
![]() |
| Viewing: Dev Shed Forums > Databases > Database Management > (MySQL) creating table , VARCHAR (<<unlimited>>) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|