Dear Christiane,
as it really seems to be your first database, I will help you ;-)
> create table table_name (
> Column_Name not null
> );
CREATE TABLE table_name (Column_Name CHAR(50) NOT NULL) is correct.
Replace the field type and length (CHAR(50)) to suit your needs.
Regards,
--
Stefan Hinz
Geschäftsführer / CEO iConnect e-commerce solutions GmbH
# www.js-webShop.com www.iConnect.de
# Gustav-Meyer-Allee 25, 13355 Berlin
# Tel: +49-30-46307-382 Fax: +49-30-46307-388
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 27, 2001 6:47 AM
Subject: not null
> I am having trouble setting a column attribute to not null. Below is
the
> statement I am using:
>
> create table table_name (
> Column_Name not null
> );
>
> If this is not the correct way to do it, can someone please help
me...this is
> my first mysql database.
>
> Thank you.
>
> ---------------------------------------------------------------------
> 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