休眠查询以获取表中特定列的逗号分隔值 [英] Hibernate Query to get the comma seperated values of a particular column in a table

查看:74
本文介绍了休眠查询以获取表中特定列的逗号分隔值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下午好

我的疑问是我的数据库中有一个名为userinfo的表,其中一列为SenderId.现在我想使用逗号分隔符将SenderId列的所有值转换为字符串类型的数组.请告诉我如何编写对此进行休眠查询.

在此先感谢

Hi Good Afternoon

My doubt is i have a table called userinfo in my database with one of the column as SenderId.Now i want to get all the values of the SenderId column into a string type array using comma seperator.Can you please tell me how to write the hibernate query for this.

Thanks in advance

推荐答案

您好,

http ://blog.sqlauthority.com/2008/06/04/sql-server-create-a-comma-delimited-list-using-select-clause-from-table-column/ [ ^ ]

按照上面的链接.希望对您有帮助.

谢谢
sanjeev
Hello,

http://blog.sqlauthority.com/2008/06/04/sql-server-create-a-comma-delimited-list-using-select-clause-from-table-column/[^]

follow above link. hoping it will help you out.

thanks
sanjeev


这篇关于休眠查询以获取表中特定列的逗号分隔值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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