Jump to content

Advanced MYSQL Query

Go to solution Solved by prolemur,

Ill give it a shot and let you know how it goes

Alright, I think this is what you are looking for anyways :)

I am alright at simple queries, i have never needed to do anything too advanced though.

 

Whenever i need to do something complicated, i ususally write a script to do it instead of writing an advanced query. I cannot do that here for reasons.

 

 

What i have:

Cell A => "this",Cell B => "is a",Cell C => "string",

What i need:

Cell D => Cell A + " " + Cell B + " " + Cell C

Or, more simply:

Cell D => "this is a string"

How can I accomplish this?

~Judah

Link to comment
https://linustechtips.com/topic/418138-advanced-mysql-query/
Share on other sites

Link to post
Share on other sites

Alright, I think this is what you are looking for anyways :)

 

Thanks a ton for your help!

 

The final query I ended up with was this:

UPDATE `fortusrealty_com`SET `address_fixed` = (    SELECT CONCAT(`field_LIST_31`," ",`field_LIST_33`," ",`field_LIST_34`," ",`field_LIST_37`," ",`field_LIST_35`)    AS `address_fixed`)WHERE `address_fixed` != ""LIMIT 100

Couldnt have done it without your help

~Judah

Link to comment
https://linustechtips.com/topic/418138-advanced-mysql-query/#findComment-5623352
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×