create a unique filename from a SQL statement in PHP
<p>I would like to convert long SQL commands into unique filenames for a caching exercise.
I am currently using the <code>md5()</code> of each SQL command but am unsure of whether these would be unique.</p>

<p>Would the <code>md5($sql)</code> result in unique filenames per SQL statement?</p>

<p>And would those <code>md5</code> strings always be the same for the same SQL statement? They would need to be for me.</p>

<p>Thanks very much!</p>
