Jump to content

setting default in mysql tables


aysx

Recommended Posts

Try this.

 

sample  CREATE TABLE `sample` ( 

        `Name` varchar(100) default \'TestName\',

        `Age` decimal(10,0) default \'20\');

 

Also refer manual for more details and examples.

 

http://www.phpfreaks.com/mysqlmanual.php

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.