Hi,
I tried to use dynamic table names like:
create table outgoing_%Y%m%d (
ip_src CHAR(15) NOT NULL,
ip_dst CHAR(15) NOT NULL,
src_port INT(2) UNSIGNED NOT NULL,
dst_port INT(2) UNSIGNED NOT NULL,
stamp DATETIME,
PRIMARY KEY (ip_src, ip_dst, src_port, dst_port, stamp_inserted)
);
but every time i got message about syntax error:
error : 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 '%Y%m%d (' at line 1
So, I'm even not sure, it is possible to use %Y%m%d in name or not?
Cheers,
flybro