Jump to content

Recommended Posts

Posted

I am working on building my first ever mySql database. It is a simple one, listing a collection of books. I have created for the first table a number of fields for title, author, isbn, etc. What I would like to know is what is the type I should enter for the ISBN number. Should I use INT? TEXT? The format of my ISBN numbers will be like this: 1-885419-54-0

 

Suggestions? Thanks. :D

Posted

INT is out of the question since your going to have dashes. I would use char(length) or varchar(length) since its going to be a fixed number of characters.

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

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