Question:

I'm getting a MySql syntax error. ?

by  |  earlier

0 LIKES UnLike

I need to declare some fields in my Mysql data base to be of type integer and they should have default value null. But declaring like this is showing syntax error. What is the alternative??

 Tags:

   Report

2 ANSWERS


  1. try this syntax

    CREATE TABLE test

        (test1                          VARCHAR2(11) DEFAULT 'yes' NOT NULL)

    /


  2. Paste the SQL querry so we can check where the error is.

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.