Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 197
  • Last Modified:

insert syntax

Hi:

I get a syntax error when I try to insert into the db the following values : syntax error neat getdate. WHat could it be?

insert into mytable(1,'A:\disk1','myfile',2,getdate(),getdate(),20)

the fields are bigint, varchar(8000),varchar(200), int,datetime,datetime,int
thanx
0
LuckyLucks
Asked:
LuckyLucks
1 Solution
 
rafranciscoCommented:
You forgot the word VALUES:

insert into mytable values (1,'A:\disk1','myfile',2,getdate(),getdate(),20)
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now