cachobong Posted January 12, 2006 Share Posted January 12, 2006 Hi guys! can u help me with my SQL? here's what i want to happen... TMP_TABLE.remarks = TMP_TABLE.state plus TMP_TABLE.zip that is for all fields..how do i do it with only 1 SQL statement? Quote Link to comment https://forums.phpfreaks.com/topic/3182-sql-statement/ Share on other sites More sharing options...
LazyJones Posted January 12, 2006 Share Posted January 12, 2006 [!--quoteo(post=335816:date=Jan 12 2006, 05:16 AM:name=cachobong)--][div class=\'quotetop\']QUOTE(cachobong @ Jan 12 2006, 05:16 AM) 335816[/snapback][/div][div class=\'quotemain\'][!--quotec--] Hi guys! can u help me with my SQL? here's what i want to happen... TMP_TABLE.remarks = TMP_TABLE.state plus TMP_TABLE.zip that is for all fields..how do i do it with only 1 SQL statement? With this lack of information, helping would be just like shooting in the dark... What exactly are you trying to do? Insert new value, update, search? What are those values? Are you trying to add two intergers? or maybe doubles? Or trying to concat two strings? Try to place yourself in our position and think if you could manage to help with that kind of question. Quote Link to comment https://forums.phpfreaks.com/topic/3182-sql-statement/#findComment-10827 Share on other sites More sharing options...
cachobong Posted January 12, 2006 Author Share Posted January 12, 2006 [!--quoteo(post=335818:date=Jan 12 2006, 06:29 PM:name=LazyJones)--][div class=\'quotetop\']QUOTE(LazyJones @ Jan 12 2006, 06:29 PM) 335818[/snapback][/div][div class=\'quotemain\'][!--quotec--] With this lack of information, helping would be just like shooting in the dark... What exactly are you trying to do? Insert new value, update, search? What are those values? Are you trying to add two intergers? or maybe doubles? Or trying to concat two strings? Try to place yourself in our position and think if you could manage to help with that kind of question. m sori for the lack of information TMP_TABLE.state is varchar TMP_TABLE.zip is also varchar m trying to concat the 2 strings and put it into the TMP_TABLE.remarks of the same record. m trying to update the record... m sori agen for the lack of information... thanks.. Quote Link to comment https://forums.phpfreaks.com/topic/3182-sql-statement/#findComment-10828 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.