CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   MySQL (http://www.codingforums.com/forumdisplay.php?f=7)
-   -   Insert (http://www.codingforums.com/showthread.php?t=277880)

CM670 10-19-2012 12:12 PM

Insert
 
Hi,

I have a table which holds the status of peoples orders. It holds information on order_id
order_status
order_desc
letter.

Different letters are printed automatically according to the status of the order.

However when the status is 'Dispatch' i need two letters to be printed.

I have tried

Code:

Insert into orderstatus (order_id,order_status,
order_desc, letter) values('025', 'Dispatched', 'Black tailored coat ','DPTdoc DPT2doc');

This only prints the first letter, (the DPTdoc) but not the second (DPT2doc).

Does anyone have any ideas on how to fix this?

Thanks!

guelphdad 10-19-2012 02:01 PM

Yes, normalize your data. Multiple values do not belong in a single column.


All times are GMT +1. The time now is 04:01 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.