MySQL procedure not producing output -
i sql newbie. trying write simple sql procedure can pass order id (as int) , out put of corresponding order status. here details:
table structure:
transactionid int(11) no
buyeremail text no
buyername varchar(255) no
buyerphonenumber text no
purchasedate date no
paymentsdate date yes
methodofpayment varchar(50) yes
shippingprice int(10) yes
shippingtax int(10) yes
shipservicelevel varchar(100) yes
shipaddress1 varchar(255) no
shipaddress2 varchar(255) yes
shipcity text no
shipstate text yes
shippostalcode text no
shipcountry text no
shipphonenumber text yes
orderprocessed bit(1) yes
orderstatus text no
procedure
drop procedure `orderstatus`; create definer=`profetah`@`localhost` procedure `orderstatus`(in` orderid` int, out `output1` text) not deterministic contains sql sql security definer begin select orderstatus output1 `profetaorders` transactionid=orderid; end error
dataerror er_parse_error: have error in sql syntax; check manual corresponds mysql server version right syntax use near 'select @output1 output1' @ line 1
please help. regards.
the problem not in code. integromate.com when contacted solved error there side.
regards.
Comments
Post a Comment