Posted by: Sourav | March 26, 2011

Creating a basic database with a table in mysql


create database sourav_corp
use sourav_corp;
create table contents (
id int(8) not null auto_increment,
name varchar(50) not null,
designation varchar(50) not null,
salary varchar(20) not null,
visible tinyint(1) not null,
primary key (id)
);

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: