Re: Хранимые процедуры + PHP
а можно склеить имя переменной в хп со строкой:
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 ...
Subject
Views
Written By
Posted
7912
October 20, 2009 12:34PM
Re: Хранимые процедуры + PHP
3273
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.