MySQL Forums
Forum List  »  Turkish

named parameter
Posted by: bahadır doğan
Date: December 16, 2008 03:56AM

Sorguda ? yerine :p1 gibi isimli parametre kullanmak mumkun degil mi?

BEGIN
PREPARE statement FROM
"SELECT p.product_id, p.name,
p.price, p.discounted_price, p.thumbnail
FROM product p
WHERE p.display>?;"


SET @p1 = displayed;

EXECUTE statement USING @p1;
END$$

Options: ReplyQuote


Subject
Views
Written By
Posted
named parameter
6729
December 16, 2008 03:56AM


Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.