mysql - What is this unusual CREATE TABLE syntax? -
i create db. have script file .sql :
create table [allelefreqbysspop] ( [subsnp_id] [int] not null , [pop_id] [int] not null , [allele_id] [int] not null , [source] [varchar](2) not null , [cnt] [real] null , [freq] [real] null , [last_updated_time] [datetime] not null ) go
it seems different mysql or postgresql.
what type of languige this? how can use it?
judging square brackets , go
keyword, t-sql (ms sql server). use in mysql, remove square brackets , solve incompatibilities (ie. types or missing escaping) there on.
i tested in sql fiddle, , removing square brackets enough in case. other ddl statements however, may have substitute types (ie. datetime2
t-sql not supported in mysql), , may run other problems - need escape column names reserved keywords in 1 dialect not other, etc. usual sql databases do not use 100% standards compliant sql.
Comments
Post a Comment