sql server - Inserting row error, incorrect syntax near '<' -
i've never used sql servre before new me.
i have following insert statement:
insert [dbo].[web_static_pages]([url], [template], [title], [metadesc],[metakey]) values (<url, varchar(255), "test">, <template, varchar(255), "test.php">, <title, nvarchar(255), "test title">, <metadesc, text, "test meta">, <metakey, text, "test meta key">) go
the following has 3 'tooltip' warnings though in sql server management studio:
incorrect syntax near '<'" , "varchar not recognised built in function name
can suggest issue here? how can reformat statement suit sql server management studio?
when inserting values using sql server, need specifies actual data want inserted in values
clause. use comma-separated list of values in case, , wrap in parentheses:
insert [dbo].[web_static_pages] ([url] ,[template] ,[title] ,[metadesc] ,[metakey]) values ( 'test', 'test.php', 'test title', 'test meta', 'test meta key')
Comments
Post a Comment