سلام.
آقا ما یه اشتباهی کردیم رفتیم شروع کنیم با SQL Server2000 کار کنیم هر چی مینویسیم چهار پنج تا error میگیره لطف کنید بگید کجای کارم اشتباهه.
ممنون
create schema authorization nazanin
create database bank
create table deposit(
c_name char(15) not null,
b_name char(15) not null,
account_no char(10) not null,
balance integer
primary key(account_no))
insert into deposit
values('ali','azadi','1254','15000')
insert into deposit
values('reza','azadi1','1544','18500')
go
Server: Msg 156, Level 15, State 1, Line 2
Incorrect syntax near the keyword 'database
به بارم یهGo اضافه کردم که فاجعه شد.
create schema authorization nazanin
create database bank
go
create table deposit(
c_name char(15) not null,
b_name char(15) not null,
account_no char(10) not null,
balance integer
primary key(account_no))
insert into deposit
values('ali','azadi','1254','15000')
insert into deposit
values('reza','azadi1','1544','18500')
go
Server: Msg 156, Level 15, State 1, Line 2
Incorrect syntax near the keyword 'database'.
Server: Msg 213, Level 16, State 5, Line 1
Insert Error: Column name or number of supplied values does not match table definition.
Server: Msg 213, Level 16, State 1, Line 1
Insert Error: Column name or number of supplied values does not match table definition.
آقا ما یه اشتباهی کردیم رفتیم شروع کنیم با SQL Server2000 کار کنیم هر چی مینویسیم چهار پنج تا error میگیره لطف کنید بگید کجای کارم اشتباهه.
ممنون
create schema authorization nazanin
create database bank
create table deposit(
c_name char(15) not null,
b_name char(15) not null,
account_no char(10) not null,
balance integer
primary key(account_no))
insert into deposit
values('ali','azadi','1254','15000')
insert into deposit
values('reza','azadi1','1544','18500')
go
Server: Msg 156, Level 15, State 1, Line 2
Incorrect syntax near the keyword 'database
به بارم یهGo اضافه کردم که فاجعه شد.
create schema authorization nazanin
create database bank
go
create table deposit(
c_name char(15) not null,
b_name char(15) not null,
account_no char(10) not null,
balance integer
primary key(account_no))
insert into deposit
values('ali','azadi','1254','15000')
insert into deposit
values('reza','azadi1','1544','18500')
go
Server: Msg 156, Level 15, State 1, Line 2
Incorrect syntax near the keyword 'database'.
Server: Msg 213, Level 16, State 5, Line 1
Insert Error: Column name or number of supplied values does not match table definition.
Server: Msg 213, Level 16, State 1, Line 1
Insert Error: Column name or number of supplied values does not match table definition.