SQL Server - INSERT RECORDS INTO TABLE VIA STORED PROCEDURE AND DEFAULT VALUES

preview_player
Показать описание
How to use a stored procedure to insert records to a database table. This tutorial also goes over how to set up the stored procedure with parameters that have default values and then the different methods of calling or executing the stored procedure.
Рекомендации по теме
Комментарии
Автор

how did you write the procedure to auto-generate the CT_Key?i did something like that on aprimary key column to autogenerate it but when i inserted the second value it gave me an error (Violation of PRIMARY KEY constraintmplo 'pkeyeeid'. Cannot insert duplicate key in object 'HumanResource.Employee'.
The statement has been terminated.)

peteoo
Автор

how to modify default values
create table customers1 (id int, name varchar(20), age int, salary decimal(18, 2)constraint df_constraint default 5000.00, address varchar(20) )
now i want to be change salary values to 7000.00
please anyone help me

dhanasekar
Автор

Dave plz i need to insert two different dates into a date column in my database can u help me out

jeromelord
Автор

*** FREE COURSE COUPON - SAVE $75.00 ***

SQLUniversity