Click here to Skip to main content
15,907,913 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a table with 3 coulmns say id, column1, column2, column3.
i want to add column1 and column2 values by importing.
i need colum3 as formule ( just like in excel)
Column3=column1+column2.
i want to column3 automatically get added and displayed while importing column1 and column2.
here id will be auto incremental( hope no issue for this extra column).
Please suggest me how to do in phpmyadmin
Posted

hi

try this query,

Select Id, Column1,Column2, Column1+Column2 as Column3 from tablename



regards,
Prakash.T
 
Share this answer
 
can i use any stored procedure here?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900