查询数据库中的问题................. [英] Query Problem in data base .................

查看:76
本文介绍了查询数据库中的问题.................的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



i有这样的查询

 选择 UserID < span class =code-keyword>来自 dbo.IE_REGISTRATION 其中 UserType!= '  CUSTOMER' 





输出:



用户ID

1000000000



所以这里我想通过静态添加记录意味着我想要像这样的输出



用户ID

1000000000

1000000002-static

1000000203-static



可以任何建议我



感谢adv,

问候,

Rahul。

解决方案

 选择 UserID + < span class =code-string>'   - ' + '  Sataic' 来自 dbo.IE_REGISTRATION 其中 UserType<> ' 客户 


Hi,
i have query like this

select UserID from dbo.IE_REGISTRATION where UserType!='CUSTOMER'



output:

UserID
1000000000

so here i want to Add records by Statically means i want to the output like this

UserID
1000000000
1000000002-static
1000000203-static

Could any suggest me

Thanks in adv,
Regards,
Rahul.

解决方案

select UserID+'-'+'Sataic' from dbo.IE_REGISTRATION where UserType<>'CUSTOMER'


这篇关于查询数据库中的问题.................的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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