Hello,
I have a MySQL database field 'product' which has several products listed as well as additional appended information concerning the product. The contents of the database field look similar to the following:
1M96-3P - MR + Disc:$10
1018 - MR + Disc:$10
1M99-3P - MR + Disc:$10
1M02-SS - SF + Disc:$15
6504 - SR + Disc:$15
23M9 - bulk + Apron
23M9 - bulk + Apron
20M1 - bag + Cruise
Smartchoice 5G Smartbox-50#
Smartchoice 5G Smartbox-50#
Smartchoice 5G Smartbox-50#
RoundUp Power Max - Bulk + Disc:$1
What I would like to do is write a SQL UPDATE statement that takes the product field and deletes '+ Disc:' and everything to the right of the '+ Disc:' portion of the product name.
I have been looking at and playing with SQL String Functions but I can't seem to find anything that works specifically how I am trying to do it.
Thank you for your assistance
I have a MySQL database field 'product' which has several products listed as well as additional appended information concerning the product. The contents of the database field look similar to the following:
1M96-3P - MR + Disc:$10
1018 - MR + Disc:$10
1M99-3P - MR + Disc:$10
1M02-SS - SF + Disc:$15
6504 - SR + Disc:$15
23M9 - bulk + Apron
23M9 - bulk + Apron
20M1 - bag + Cruise
Smartchoice 5G Smartbox-50#
Smartchoice 5G Smartbox-50#
Smartchoice 5G Smartbox-50#
RoundUp Power Max - Bulk + Disc:$1
What I would like to do is write a SQL UPDATE statement that takes the product field and deletes '+ Disc:' and everything to the right of the '+ Disc:' portion of the product name.
I have been looking at and playing with SQL String Functions but I can't seem to find anything that works specifically how I am trying to do it.
Thank you for your assistance