Please explain what this mean: VARCHAR( 25 ) NOT NULL ,

Discussion in 'Databases' started by glasshoper, Feb 19, 2007.

Thread Status:
Not open for further replies.
  1. #1
    VARCHAR( 25 ) NOT NULL ,

    from update database.php

    can anyone explain one by one what varchar is and what that # 25 is and etc.

    can i start a new database.php with same VARCHAR( 25 ) NOT NULL ?
     
    glasshoper, Feb 19, 2007 IP
  2. toby

    toby Notable Member

    Messages:
    6,923
    Likes Received:
    269
    Best Answers:
    0
    Trophy Points:
    285
    #2
    varchar is a datatype. It means it is used to store variable character. 25 means the length it allows you to input to that column. In this case, you can store UP TO 25 characters. Not null mean the column CANNOT have null value or "empty" value if you may think.

    can you start with new database.php? Yes you can.
     
    toby, Feb 19, 2007 IP
Thread Status:
Not open for further replies.