How to create TINYINT(1) datatype in mysql database? -


I am creating a table in the mysql database but giving this error ...

  'EC_TIMETABLE` (`S_ID` VARCHAR (30)) Null primary key,` Skilled IdED' VARCHAR (30) tap, START_DT DATETIME NULL, END_DT DATETIME NULL, Repeat tinet (1) faucet, ALL_DAY TINYINT (1) NULL, CLASS_DURATION INT NULL, COURSE_DURATION INT NULL, REPEAT_TYPE VARCHAR (30) NULL, REPEAT_EVERY INT zero, REPEAT_DAYS VARCHAR (100) NULL, REPEAT_FROM DATE NULL, REPEAT_TO DATE NULL, COURSE_FEE INT ZERO, ATTENDEE_MIN INT NULL, ATTENDEE_MAX INT NULL, SEARCH_KEY TINYTEXT Zero, foreign key (`SCCIEDID`) reference` ECICKSTST` (` S_aidi`) no action) engines no action went Action ouster = Innodibi;   

but giving this error:

# 1064 - There is an error in your SQL syntax;

Click on the manual which is close to the correct syntax for your syntax 'Repeat tinનેટ (1) NULL, ALL_DAY TINYINT (1) NULL, CLASS_DURATION INT NULL' How to solve this one

repeat is a reserved keyword you still use it You can, but you need to wrap it with backticks.

  `repeat` tinnitus (1) null,   
  • I suggest that in the future To avoid pain in the neck, you do not use such keywords in the reserved list.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -