Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » ElevateDB Technical Support » Support Forums » ElevateDB SQL » View Thread |
Messages 1 to 3 of 3 total |
Hmmm. Is this a bug? |
Mon, Nov 11 2019 9:03 PM | Permanent Link |
Ian Branch | Hi Team,
I modified a constraint, no problem, and the SQL generated under Explorer|SQL History was.. {sql} ALTER TABLE "Albums" ALTER CONSTRAINT "BarCodeNo_PriceCode" AS UNIQUE ("BarcodeNoPriceCode") ERROR CODE 20001 MESSAGE 'Duplicate Barcode # Price Code is not permitted.' {sql} When I put this into a script.. {sql} Execute Immediate 'ALTER TABLE "Albums" ALTER CONSTRAINT "BarCodeNo_PriceCode" AS UNIQUE ("BarcodeNoPriceCode") ERROR CODE 20001 MESSAGE 'Duplicate Barcode # Price Code is not permitted.''; {sql} It falls over. Doesn't like the MESSAGE text. What do I do about the Message pls? Regards & TIA, Ian |
Tue, Nov 12 2019 2:09 AM | Permanent Link |
Yusuf Zorlu MicrotronX - Speditionssoftware vom Profi | Ian Branch wrote:
> {sql} > Execute Immediate 'ALTER TABLE "Albums" > ALTER CONSTRAINT "BarCodeNo_PriceCode" AS UNIQUE > ("BarcodeNoPriceCode") ERROR CODE 20001 MESSAGE 'Duplicate Barcode # > Price Code is not permitted.''; {sql} > Hi Ian, check your MESSAGE ... only one ' written, but you have to "escape" that ' and make '' like this: Execute Immediate 'ALTER TABLE "Albums" ALTER CONSTRAINT "BarCodeNo_PriceCode" AS UNIQUE ("BarcodeNoPriceCode") ERROR CODE 20001 MESSAGE ''Duplicate Barcode Price Code is not permitted.''; -- -- Yusuf Zorlu | MicrotronX |
Tue, Nov 12 2019 4:51 PM | Permanent Link |
Ian Branch | Tks Yusuf,
Double single quotes. Duly noted. Regards, Ian |
This web page was last updated on Tuesday, April 30, 2024 at 03:55 PM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |