Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8811613
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:24:33+00:00 2026-06-14T03:24:33+00:00

ok so I do this mysql command: SELECT CONCAT(SUBSTRING(Familenaam,1,4),SUBSTRING(Voornaam,1,4)) AS `Login` FROM tblusers This

  • 0

ok so I do this mysql command:

SELECT CONCAT(SUBSTRING(Familenaam,1,4),SUBSTRING(Voornaam,1,4)) AS `Login` FROM tblusers

This gives me the result for johny cowbell -_> johncowb (=loginname) but this is in a query.

I want that result in my table tblusers in the column “Login”.
How do I do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T03:24:34+00:00Added an answer on June 14, 2026 at 3:24 am

    You can use INSERT INTO .. SELECT like so:

    INSERT INTO tblusers(login)
    SELECT 
      CONCAT(SUBSTRING(Familenaam, 1 ,4), SUBSTRING(Voornaam,1,4)) 
    FROM tblusers
    

    If you want to update, you can do this:

    UPDATE tblusers t1
    INNER JOIN
    (
       SELECT 
         userid,
         CONCAT(SUBSTRING(Familenaam, 1 ,4), SUBSTRING(Voornaam,1,4)) login
       FROM tblusers
    ) t2 ON t1.userid = t2.userid
    SET t1.login = t2.login
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I run this command in MySQL: SELECT * FROM v WHERE v.firstname LIKE
I have this code: con.Open(); cmd = new MySqlCommand(String.Format(SELECT concat(name,'|',lastname) FROM {0} WHERE ID=
I've got a script which launch this MySQL command : mysqldump -u login -ppass
I am executing a Command mysql -uroot -proot -Bse select Concat('SHOW CREATE TABLE ',TABLE_SCHEMA
Here's my SQL (MySQL) command: SELECT pp.pluginid FROM plugins pp WHERE (pp.limit=-1) OR (pp.limit>(select
Suppose I have a command like this: select name, age, haircolor from people where
I'm trying to print a query result to file from MySQL ( SELECT blah
I have a strange problem. I tried this command in mysql: SELECT `type`, `bought`
I have created some file from mysql command i.e. select * into outfile '/tmp/abc.csv'
Related: see here I've got this command: exec((wget -O http://domain/file.zip && mysql -u user

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.