» »

MariaDB | DECLARE maxid INT(11);

MariaDB | DECLARE maxid INT(11);

HotBurek ::

Čer...

Tole sem že imel rešeno, pa nimam več source fajlov, in ponovno iščem...

Kako deklarirati variable maxid pri Mariji (ne tisti, katera je bila na današnji dan v nebo vzeta), rabim INT.


Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 6098
Server version: 10.5.5-MariaDB-1:10.5.5+maria~buster mariadb.org binary distribution

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]>
MariaDB [(none)]> USE database_1;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
MariaDB [database_1]> DECLARE maxid INT;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'DECLARE maxid INT' at line 1
MariaDB [database_1]> DECLARE maxid INT(11);
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'DECLARE maxid INT(11)' at line 1
MariaDB [database_1]>
MariaDB [database_1]> DECLARE trolll INT;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'DECLARE trolll INT' at line 1
MariaDB [database_1]> DECLARE x, y INT DEFAULT 0;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'DECLARE x, y INT DEFAULT 0' at line 1
MariaDB [database_1]>
root@debian:/# iptraf-ng
fatal: This program requires a screen size of at least 80 columns by 24 lines
Please resize your window

RedDrake ::

DECLARE dela samo v stored procedurah in funkcijah afaik?


Vredno ogleda ...

TemaSporočilaOglediZadnje sporočilo
TemaSporočilaOglediZadnje sporočilo
»

SQL vprasanje (strani: 1 2 )

Oddelek: Programiranje
688357 (5036) BivšiUser2
»

[MySql]Sintaksa poizvedbe

Oddelek: Programiranje
61621 (1542) KernelPanic
»

php, napake in napake :S

Oddelek: Izdelava spletišč
171542 (1299) preem
»

SQL Error

Oddelek: Izdelava spletišč
141245 (1106) Lukas991
»

Napaka pri MySQL pri postavitvi foruma

Oddelek: Izdelava spletišč
71726 (1642) DJ-DUST

Več podobnih tem