Files
firestuff/markdown/2006-01-25-new-mysql-toys.md
2019-04-25 02:45:09 +00:00

730 B
Raw Blame History

In 5.1.5:

SELECT ExtractValue(<a>foo<b>bar</b></a>, //b);

	bar

SELECT UpdateXML(<a>foo<b>bar</b></a>, //b, zig);

	<a>foozig</a>

XSLT implementation on its way, maybe? :)

In 5.1.6:

CREATE EVENT e
ON SCHEDULE EVERY 1 DAY
ON COMPLETION PRESERVE
DO INSERT INTO log VALUES (1);

(think cron)

And:

CREATE EVENT e
ON SCHEDULE AT 2006-01-01 03:00:00
ON COMPLETION NOT PRESERVE
DO OPTIMIZE TABLE foo;

(think at)

The server variable “event_scheduler” has to be set to 1 for these to work.