MySQL: How to pass parameters from command line?
<p>In PostgreSQL you can pass in named parameters from the command line when running queries with psql. For example, if you run a command like this: </p>

<pre><code>psql -v v1=12 -f query.sql
</code></pre>

<p>Inside query.sql you can reference v1 like so:</p>

<pre><code>select * from table_1 where id = :v1;
</code></pre>

<p>Does MySQL support anything similar?</p>