Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Prepare statement
Crisu
post
Post #1





Grupa: Zarejestrowani
Postów: 59
Pomógł: 0
Dołączył: 11.08.2006

Ostrzeżenie: (0%)
-----


Ktos wie, czemu ten kod sie nie chce wykonac ? (mimo ze sie kompiluje)
Kod:

  1. delimiter |
  2. CREATE procedure proc11()
  3. begin prepare stm FROM 'select count(*) from ?'; SET @tabs = 'cars';
  4.  
  5. execute stm USING @tabs;
  6.  
  7. end;|



a blad

Cytat
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '?' at line 1


pozdrawiam
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 3.10.2025 - 15:17