views:

22

answers:

2

dear all..i have a table it looks like:

Name        version
DDX           01
DTX           05

could i combine two separate fields become one field? and it will show like:

Model
DDX01
DTX05

thanks before..

+4  A: 

You could use the following query (using CONCAT) to insert the Model in a new table or a new column

SELECT
  CONCAT(Name,version) AS Model
FROM
  table
madgnome
thanks..i missed the concat.
klox
+1  A: 

Use MySQL CONCAT keyword. As for your question, it will be like:-

SELECT CONCAT(Name, version) AS Model FROM table

(as mentioned by others already)

Hope it helps.

Knowledge Craving