I just created a new column SCHEDULE
in a table COURSE_OFFERING
with the data type TIMESTAMP
.
While inserting data into the column (WHERE
the primary key is Course_ID
) I am using below code:
INSERT INTO COURSE_OFFERING ('SCHEUDLE')
VALUES (TO_TIMESTAMP ('07-JAN-2019 07:00:00','DD-MON-YYYY HH:MI:SS'))
WHERE COURSE_ID = '13477';
But SQL Server responded with an error
Missing
SELECT
keyword
Can someone guide me where did I go wrong? or what should I use to insert data in timestamp column?
I am very new to the coding world, and is actually just learning, I would appreciate if you can keep it simple.