Jump to content

First MYSQL Script - Basic Questions


Brandon_R

Recommended Posts

Hey guys im trying to learn a bit of mysql and whats better than making a simple script :)

I already have my table, colums already made in my database but just incase can u guys tell me what would be the install code for this, format is (column name - values it should contain)

 

id - this should autoincrement PRIMARY KEY ensuring no 2 entries are alike such as 1,2,3,4,5 etc

name - basic letters and numbers - TEXT

name_id - value should be 10 chars long consisting or numbers, dashes and letters

name_region - value should be either a 1A, 2A or 3A

 

Ofcourse no entey should be blank so NOT NULL for all colums would be nice and also for the name_region could you have the command to insert those values (1A, 2A and 3A) as soon as the column is created :)

 

Thank You

 

Brandon_r

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.