插入值并使用存储过程查找值的总和 [英] Inserting values and find the sum of values using stored procedure

查看:73
本文介绍了插入值并使用存储过程查找值的总和的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨.....

我想在wpf应用程序中创建图书管理系统..我必须将图书名称,作者,数量,价格等插入数据网格。我必须插入这些值使用存储过程,当我调用事件总按钮_click时,应该有另一个数据网格,应该显示这些书的invoiceno和总数...这也应该使用用户定义的存储过程完成..我已创建这两个单独的表...必须添加它们之间的关系...我怎么能这样做...

提前谢谢..

swathi

Hi.....
I want to create book management system in wpf application..I have to insert book name,author,quantity, price etc to a datagrid.I have to insert these values using stored procedure and when i am invoking the event total button _click there should be another datagrid on which invoiceno and grand total of these books should be displayed...That also should be done using user defined stored procedure..I have created two seperate tables for this...Have to add relationship between them...How can i do this...
Thanks in advance..
swathi

推荐答案





使用外键概念,请检查此链接http://www.w3schools.com/sql/sql_foreignkey.asp [ ^ ]。


这篇关于插入值并使用存储过程查找值的总和的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆