hello,
im writing an procedure to create tables.
#v+
> CREATE PROCEDURE aaa (IN a char(20))
CREATE TABLE a (id int);
Query OK, 0 rows affected (0.01 sec)
> call aaa("bigtable");
Query OK, 0 rows affected (0.01 sec)
> show tables;
+----------------+
| Tables_in_test |
+----------------+
| a |
+----------------+
1 rows in set (0.00 sec)
#v-
How can i write the procedure to take the value of a to create the table?
im writing an procedure to create tables.
#v+
> CREATE PROCEDURE aaa (IN a char(20))
CREATE TABLE a (id int);
Query OK, 0 rows affected (0.01 sec)
> call aaa("bigtable");
Query OK, 0 rows affected (0.01 sec)
> show tables;
+----------------+
| Tables_in_test |
+----------------+
| a |
+----------------+
1 rows in set (0.00 sec)
#v-
How can i write the procedure to take the value of a to create the table?
Comment