Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2006
    Posts
    57

    Unanswered: initialize all fields when table is created

    Is there a way to give fields or rows default data when the table is created?

  2. #2
    Join Date
    Nov 2003
    Posts
    2,935
    Provided Answers: 12
    Code:
    CREATE TABLE test_table 
    ( 
      firstname VARCHAR(50) DEFAULT 'Arthur',
      lastname VARCHAR(50) DEFAULT 'Dent'
    )

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •