×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Need to append some text to existing data using concat

Need to append some text to existing data using concat

Need to append some text to existing data using concat

(OP)
I have two schemas arkdb and kalscrosschat. Id is primary key on both.

arkdb has a table called players and fields

Id SteamId PermissionGroups

1 76561197969383152 Default

2 76561197969383154 Default

Kalscrosschat has a table called discordsteamlinks amd fields

Id, SteamId DiscordId InviteCode.

1 76561198032704712 150054663054426113 NU123

2 76561198032704714 150054663054426113 ME123

i have a select query.

Select
kalscrosschat.discordsteamlinks.DiscordId,
kalscrosschat.discordsteamlinks.SteamId,
arkdb.players.SteamId As SteamId1,
arkdb.players.PermissionGroups
From
kalscrosschat.discordsteamlinks Inner Join
arkdb.players On arkdb.players.SteamId = kalscrosschat.discordsteamlinks.SteamId
Where
arkdb.players.PermissionGroups Not Like '%Discord%'
I then need to update the arkdb.players.permissionsgroups to append Discord, to the end.

So 1 76561197969383152 Default would become 1 76561197969383152 Default,Discord,

How do i go about this???

RE: Need to append some text to existing data using concat

Hi,

???

From your sample data and SQL, there is no matching Steamid on the Inner Join and therefor no row to update.

Skip,

glassesJust traded in my OLD subtlety...
for a NUance!tongue

"The most incomprehensible thing about the universe is that it is comprehensible" A. Einstein

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close