| imho.ws |
![]() |
|
|
|
# 1 |
|
Member
Регистрация: 16.10.2002
Адрес: Moscow
Сообщения: 312
![]() ![]() ![]() |
Меняю вопрос(+)
Как мне в билдере(или дельфи не суть) использовать хранимую процедуру,которая не возвращает набора параметров,а возвращает только один параметр return-ом,то есть искомое значение будет в параметре return_value.Нужно получить значение и использовать его в дальнейшем.
Одно но когда я пытаюсь сделать ADOstored proc активным через object inspector мне выдается ошибка,что не возвращен набор параметров.Я так понимаю - это результат того,что хранимая процедура вызвана методом open,а не exeс.Может быть есть кто-нибудь,кто подскажет как мне это сделать грамотно. |
|
|
|
|
# 2 |
|
Junior Member
Регистрация: 17.12.2002
Адрес: [EST], Tallinn
Сообщения: 120
![]() |
Уж не знаю, как там это у АДО, но у ДОА это реализуется через TOraclePackage компонент. Подробнее может тебе объяснить только DOA.HLP файл
Звиняй за "Copy-->Paste", но объяснение здесь. Вообще для ораклевича лучше пользовать ДОА (это моё мнение)... To make access to functions, procedures, variables and constants in a package as easy as possible, Direct Oracle Access offers the TOraclePackage component. You only need to set the Session property, specify the name of the package in the database, and you are ready to use it. No additional definitions are required for the objects inside the package. To call procedures or functions, you can simply use the CallProcedure and Call...Function methods. To access variables or constants, you can use the SetVariable and Get...Variable methods. Declaration function GetParameter(const ParameterId: Variant): Variant; Description Retrieves the value of an out or in/out parameter after a procedure or function call. The index is the zero-based position of the parameter. If you are using a named parameter mode, you can also specify the name of the parameter. In Delphi 4 or later this function is overloaded and accepts the index or name of the parameter.
__________________
"я не волшебник - я только учусь..." (c) ...а зовут меня Олег... Последний раз редактировалось someone312002; 24.11.2003 в 18:38. |
|
|