项目代码帮助 [英] help for project code

查看:75
本文介绍了项目代码帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道我是否可以为sp_inseret_table或sp_update_table编写代码.

我有7个值,我以一种形式使用了3个值,而不是全部值.您必须设置默认值,或者传入虚拟值,然后编写proc,以便确定要使用的值.但是,同样,最好编写两个清楚记录并按其声明执行的proc.


i want to know if I can write code for sp_inseret_table or sp_update_table.

I have 7 values and I use 3 from it in one form and not all values.

解决方案

Yes, you certainly can, although it''s not great design. You''d have to set default values, or pass in dummy values, and write your proc so it works out which values to use. But, again, better to write two procs that are clearly documented and do what they claim to.


这篇关于项目代码帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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