Hi,
I want to declare some variables statically and i want to insert it into tables.
I have following code:
- declare IN Type varchar(30) = 'ABC',
- IN Zone varchar(30) = 'A1',
- IN Contact varchar(30)='9887766',
- IN Contact2 varchar(30) = '782763'
- BEGIN
- INSERT INTO agent
- VALUES
- (Type, Zone, Contact, Contact2)
- END
Please refine this script so that i can execute and insert values to table via this.


Sagar Pandurang KapRank #606 · 4K reputationPosted Dec 26, 2017, 8:25 PM EST
Ms_ DevRank #8,652 · 218 reputationPosted Dec 26, 2017, 8:27 PM EST
Sagar Pandurang KapRank #606 · 4K reputationPosted Dec 26, 2017, 9:20 PM EST
Amit KumarRank #459 · 5.4K reputationPosted Dec 27, 2017, 1:26 AM EST