On this site (http://www.w3schools.com/sql/sql_insert.asp) it says that I can use the SQL Insert statement using the Syntax:
INSERT INTO table_name
VALUES (value1, value2, value3, ...);
I tried doing this as follows:
create table Trade
(
TradeId INT PRIMARY KEY, -- define a column of type int, primary key can't be null
Symbol varchar(20) NOT NULL, --define a column of type varchar. Not Null indicates that this column must always have a value
TradeAmount decimal(15, 3), -- total digits are 15, 3 or which are decimal points
Filled BIT NOT NULL default(0), -- we specify a default of 0 on the column
)
Go
INSERT INTO Trade
VALUES ('GOOG', 10.235785, 1)
However, I get an error
Column name or number of supplied values does not match table definition
and I am unsure why this is the case.
Thanks