Redian新闻
>
Can I use array in SQL stored procedure?
avatar
Can I use array in SQL stored procedure?# Database - 数据库
j*n
1
If I cannot, how could I keep items in split(string," ") seperately?
Thanks!!
avatar
aw
2
no.

【在 j****n 的大作中提到】
: If I cannot, how could I keep items in split(string," ") seperately?
: Thanks!!

avatar
c*g
3
use a loop and charindex function.
Usually I join an array of String by ":", pass this joined string
as a single varchar parameter to stored procedure, then in
the stored procedure, a loop and charindex function go through
all of them. Can't write down the code without my reference. I
always copy/paste.
My bad memory really gave me a hard time during my job hunting
back years ago. I just can't remeber the syntax. It is the most embarrasing
moment when asked to wring code on paper, what a nightma

【在 j****n 的大作中提到】
: If I cannot, how could I keep items in split(string," ") seperately?
: Thanks!!

avatar
j*n
4
谢谢,我最后也是用这个办法做的。

【在 c**g 的大作中提到】
: use a loop and charindex function.
: Usually I join an array of String by ":", pass this joined string
: as a single varchar parameter to stored procedure, then in
: the stored procedure, a loop and charindex function go through
: all of them. Can't write down the code without my reference. I
: always copy/paste.
: My bad memory really gave me a hard time during my job hunting
: back years ago. I just can't remeber the syntax. It is the most embarrasing
: moment when asked to wring code on paper, what a nightma

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。