Home
Top.Mail.Ru Yandeks.Metrika
Forum: "Bases";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Down

Stored procedures, dynamic objects Find similar branches


Termik   (2001-12-06 11:47) [0]

I don’t understand why the error message appears.
In the stored procedure, I generate a dynamic SQL statement of the type:
SET @mysql = N "INSERT INTO" + @name_table + "(" + @temp + ")" + "SELECT" + @ temp + "FROM" + @name_table + "WHERE NUM_CLUST =" + STR (@INC_CLUST).
I try to execute the stored procedure, after which an error message appears:
Column name "NUM_CLUST" appears more then once in the result column list
What I did not understand and how to get around this?



SergSuper   (2001-12-06 12:00) [1]

so write
select @mysql
and see what happens
how do we know what you have in the variables?



Termik   (2001-12-06 12:07) [2]

Yes, nothing is executed, it gives an error message when trying to execute exec (@mysql)
What to do ?????????



Bachin   (2001-12-06 12:39) [3]

The sequel to learn and read errors!
he wrote to you that in your sample field appears more than once.



Pages: 1 whole branch

Forum: "Bases";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Top









Memory: 0.55 MB
Time: 0.033 c
6 - 22301
Chinese What a
2001-10-10 14:45
2002.01.08
Sclerosis or what?


1 - 22189
bestix
2001-12-14 19:54
2002.01.08
Metafiles


1 - 22053
greenrul
2001-12-18 19:29
2002.01.08
ANTIALSING for TTF fonts.


3 - 21916
SVS
2001-12-03 12:08
2002.01.08
InterBase


14 - 22402
Darker
2001-11-08 12:26
2002.01.08
Looking for a man with a nickname





afrikaans albanian Arabic armenian azerbaijani basque belarusian bulgarian catalan Chinese (Simplified) Chinese (Traditional) croatian Czech danish Dutch English estonian filipino finnish French
galician georgian German greek haitian Creole hebrew Hindi hungarian icelandic indonesian Irish italian Japanese Korean latvian lithuanian macedonian malay maltese norwegian
persian polish portuguese Romanian russian serbian slovak Slovenian Spanish swahili Swedish thai turkish Ukrainian urdu vietnamese welsh yiddish bengali bosnian
cebuano Esperanto gujarati hausa hmong igbo javanese kannada khmer lao latin maori marathi mongolian nepali punjabi somali tamil telugu yoruba
zulu
English French German Italian Portuguese Russian Spanish