select a.USR_NAME,a.FAX,a.MOBILE,a.EMAIL,b.MC_GROUP_ID,b.CUST_ALIAS,b.CUST_id from SB_user a,MC_GROUP_CUST_RELATION b ,mc_group c where b.mc_group_id=c.mc_group_id and c.group_type='00 ' and b.cust_id= a.usr_Id and c.creator='sa'
错误:在将 nvarchar 值 'sa' 转换成数据类型 int 时失败。
如何解决 ?我的另外一条语句select a.contact as USR_NAME,a.FAX,a.mobile_no as MOBILE,a.EMAIL,b.MC_GROUP_ID,b.CUST_ALIAS,b.CUST_id from sb_cust_contact a,MC_GROUP_CUST_RELATION b, mc_group c where b.mc_group_id=c.mc_group_id and c.group_type='11' and b.cust_id= a.contact_id and c.creator='sa'
就可以运行 这是什么原因?
错误:在将 nvarchar 值 'sa' 转换成数据类型 int 时失败。
如何解决 ?我的另外一条语句select a.contact as USR_NAME,a.FAX,a.mobile_no as MOBILE,a.EMAIL,b.MC_GROUP_ID,b.CUST_ALIAS,b.CUST_id from sb_cust_contact a,MC_GROUP_CUST_RELATION b, mc_group c where b.mc_group_id=c.mc_group_id and c.group_type='11' and b.cust_id= a.contact_id and c.creator='sa'
就可以运行 这是什么原因?
解决方案 »
- 请问sqlserver2008 加载脚本的方法有哪几种?
- 求一个能在XP上成功安装的sql server。。。
- 如何比较2个数据库中表结构?
- 请问如何向SQL Server2000存入文件?
- 请问高手数据库中的存储过程是存储在哪个系统表中的
- 如果数据库中存在名为"aaaa"的用户自定义函数,则删除这个函数, SQL语句要如何写??
- linkserver的疑惑:Access to the remote server is denied
- SQL 数据库MDF文件变大的问题
- %%%%%%%%%%%%%非常菜鸟的问题%%%%%%%%%%%%%
- sql转换
- 不显示删除回复显示所有回复显示星级回复显示得分回复 请教:如何独立安装Integration service服务,实现SSIS数据的迁移
- 求一个Sql,比较复杂
from SB_user a,MC_GROUP_CUST_RELATION b ,mc_group c
where b.mc_group_id=c.mc_group_id and c.group_type='00 '
and b.cust_id= a.usr_Id and ltrim(c.creator)='sa'--这样试一试
from SB_user a,MC_GROUP_CUST_RELATION b ,mc_group c
where b.mc_group_id=c.mc_group_id and c.group_type='00'
and b.cust_id= a.usr_Id and ltrim(c.creator)='sa'
select
a.USR_NAME,a.FAX,a.MOBILE,a.EMAIL,
b.MC_GROUP_ID,b.CUST_ALIAS,b.CUST_id
from
SB_user a,MC_GROUP_CUST_RELATION b,mc_group c
where
b.mc_group_id=c.mc_group_id and c.group_type='00'
and b.cust_id= a.usr_Id and ltrim(c.creator)='sa'我没有得到你这个错误呀?
试试看呢