If you are trying to create a text field (memo field) then drop the (30). If
you are trying to create a 30 chr text field then use varchar(30)

Cal
*
* Cal Evans
* Senior Internet Dreamer
* http://www.calevans.com
*
----- Original Message -----
From: "Geoff Martin" <[EMAIL PROTECTED]>
To: "mysql list" <[EMAIL PROTECTED]>
Sent: Monday, July 23, 2001 10:31
Subject: Cannot create text fields


> Using the following Syntax I tried to create a table in mySQL. However
each
> time it returned a mySQL error which I eventually worked out it was
because
> I'd defined a field as text. I am able to define fields as varchar, char,
> int or float (I've tested for theses so far) but not text or blob.
>
> The query was
>
> CREATE TABLE products(prod_id int(4),prod_name text(30),prod_detail
> varchar(255),prod_price float(6))
>
> which returns the error there is an error in the syntax near
> (30),prod_detail varchar(255),prod_price float(6)
>
> I am running on Mac OS X with MySQL 3.23.39
>
> Any of you kind people got an idea why?
>
>
> regards
>
> Geoff M
>
>
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail
<[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
>
>


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to