你在查询和更新语句中都加上yourtable.store_no = v_storeno这样的条件,
其中v_storeno就是要操作入库表的用户所拥有的仓库代号。
其中v_storeno就是要操作入库表的用户所拥有的仓库代号。
解决方案 »
- 什么是实例?
- 如何判断有什么程序消耗sql servr进程内存,大概消耗多少
- 定义游标语句 declare MyCur cursor local fast_forward for select ... from Table1 , 请问这个 Select 可否改为一个字符串变量, 如何实现?
- 怎么计算每人每个月的总奖金
- 遇到了个棘手的问题,得尽快解决,谁能帮忙呢
- sql 查询缺少的数据
- 请教关于在两个不同地点的数据库之间的数据同步与整合问题?
- 如何删除内容中第一个<br>
- 求助select问题!!(online)
- 肯定帮忙看一下这个sql语句
- sql语句问题!!!
- #####备份和恢复的简单问题#####太阳下山前给分#####
如果用户能够直接访问数据库,嗬嗬,。
execute sp_addlogin 'test','1234','Northwind',null
go
--Create a group
execute sp_addgroup 'testgroup'
go
--Add the test user to Database
execute sp_adduser 'test','test','testgroup'
go
grant update,insert
on customers
to testgroup