| |

VerySource

 Forgot password?
 Register
Search
View: 738|Reply: 3

Solving methods on string merging

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-2-2 14:40:01
| Show all posts |Read mode
Concatenates the values ​​in each record of a string field into a string
Reply

Use magic Report

0

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-3-20 22:30:02
| Show all posts
declare @str varchar (8000)
select @ str = @ str + Column from tablename
Reply

Use magic Report

0

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-3-21 06:45:01
| Show all posts
declare @str varchar (8000)
set @ str = ''-sometimes without assignment
select @ str = @ str + Column from tablename
Reply

Use magic Report

0

Threads

211

Posts

108.00

Credits

Newbie

Rank: 1

Credits
108.00

 United States

Post time: 2020-3-21 16:00:01
| Show all posts
declare @str varchar (8000)
set @ str = ''
select @ str = @ str + colName + '' from tbName

select @str
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list