MySQL Forums
Forum List  »  Russian

Re: Хранимые процедуры + PHP
Posted by: Valentin Borisenko
Date: October 21, 2009 10:24AM

а можно склеить имя переменной в хп со строкой:
Quote

CREATE PROCEDURE sp_get_news(in news_id varchar(50))
DECLARE result INT DEFAULT 0;
SELECT COUNT(*) INTO result FROM news WHERE id = news_id;
SET @(и вот здесь должна получиться переменная news3, которая образуется из "news" и news_id)

Спасибо.

-----
Deadangel is falling ...

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Хранимые процедуры + PHP
3031
October 21, 2009 10:24AM


Sorry, you can't reply to this topic. It has been closed.

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.