TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Rahul Bansal
110
17.1k
9.9m
Concatenation with char variable in SQL Server doesn't work?
Aug 19 2014 12:43 AM
For example:-
declare @a char(4)
set @a='ab'
set @a=@a+'c'
print @a
--it gives the output 'ab' but if declare the @a as varchar like
declare @a varchar(4)
set @a='ab'
set @a=@a+'c'
print @a
--then it gives the output 'abc'
Reply
Answers (
1
)
SQL to JSON
simplify the query or give alternative to the query