Si quiero pegar esta instrucción en un comentario voy a tener problemas con los backticks:
CREATE TABLE `orders` ( `idOrder` int(10) unsigned NOT NULL,
`partialShipment` tinyint(1) unsigned NOT NULL DEFAULT '1',
`partialShipMin` smallint(5) unsigned NOT NULL DEFAULT '0',
`partialShipQty` tinyint(3) unsigned NOT NULL DEFAULT '0', KEY
`partialShipment` (`partialShipment`) ) ENGINE=InnoDB DEFAULT
CHARSET=utf8
En un comentario, se va a ver así:
CREATE TABLE
orders(
idOrderint(10) unsigned NOT NULL,
partialShipmenttinyint(1) unsigned NOT NULL DEFAULT '1',
partialShipMinsmallint(5) unsigned NOT NULL DEFAULT '0',
partialShipQtytinyint(3) unsigned NOT NULL DEFAULT '0', KEY
partialShipment (
partialShipment) ) ENGINE=InnoDB DEFAULT CHARSET=utf8
O así:
CREATE TABLE orders
( idOrder
int(10) unsigned NOT NULL, partialShipment
tinyint(1) unsigned NOT NULL DEFAULT '1', partialShipMin
smallint(5) unsigned NOT NULL DEFAULT '0', partialShipQty
tinyint(3) unsigned NOT NULL DEFAULT '0', KEY partialShipment
(partialShipment
) ) ENGINE=InnoDB DEFAULT CHARSET=utf8
¿Hay alguna forma de escapar los backticks para que todo el CREATE TABLE
se vea como código
en el comentario o esto es imposible?