gavinj.net

Thoughts on technology, infrastructure, and AI

Viewing posts tagged mysql Clear filter

Mysql local variables

Just learned how to use variables in mysql - the variables are bound to the specific client session - and are destroyed on disconnect. SET @varname = value SELECT max(value) from table into @varname S...

Triggers in MySQL

Starting from Mysql 5.0.2, mysql now supports triggers - which can be quite handy. I'm using them to automatically create new (derived) table records when a user submits data to my web app. Syntax is...