Jump to content

Question On Mysql Command


satimis
 Share

Recommended Posts

Hi folks,mysql versionVer 14.12 Distrib 5.0.32I ran following command creating a table:-

mysql> CREATE TABLE `tblPerdition` (	 -> `user` varchar(128),	 -> `servername` varchar(255) default '',	 -> `port` varchar(8) NULL default 'NULL', 	-> PRIMARY KEY (`user`) 	-> ); Query OK, 0 rows affected (0.00 sec)

mysql> DESCRIBE tblPerdition;+------------+--------------+------+-----+---------+-------+| Field	  | Type		 | Null | Key | Default | Extra |+------------+--------------+------+-----+---------+-------+| user	   | varchar(128) | NO   | PRI |		 |	   || servername | varchar(255) | YES  |	 |		 |	   || port	   | varchar(8)   | YES  |	 | NULL	|	   |+------------+--------------+------+-----+---------+-------+3 rows in set (0.00 sec)

I can't figure out how to made Null columns of 'user' blank (without NO)and 'servername' blank (without YES)Please help. TIAB.R.satimis

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...