Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

Write Stored procedure SQL to insert data

$
0
0

<div>I have this table. I need to write a stored procedure to insert data into this table?

| Field             | Type        | Null | Key | Default | Extra |+-------------------+-------------+------+-----+---------+-------+
| product_id        | smallint(6) | NO   | PRI | NULL    |       |
| product_name      | varchar(40) | NO   |     | NULL    |       |
| supplier_id       | smallint(6) | YES  | MUL | NULL    |       |
| category_id       | smallint(6) | YES  | MUL | NULL    |       |
| quantity_per_unit | varchar(20) | YES  |     | NULL    |       |
| unit_price        | double      | YES  |     | NULL    |       |
| units_in_stock    | smallint(6) | YES  |     | NULL    |       |
| units_on_order    | smallint(6) | YES  |     | NULL    |       |
| reorder_level     | smallint(6) | YES  |     | NULL    |       |
| discontinued      | int(11)     | NO   |     | NULL    |       |+-------------------+-------------+------+-----+---------+-------+


Viewing all articles
Browse latest Browse all 1698

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>