]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/matita/scripts/public_html/bench.php
go
[helm.git] / helm / software / matita / scripts / public_html / bench.php
index f11994ec158f9b068425232b583d3dbdf32e3279..0a3d4fde54ce10048dad33a06a11508c614068df 100644 (file)
@@ -91,7 +91,7 @@ function links_of($name,$q,$limits){
       <? links_of("All table contents",$quey_all,$limits) ?>
       </ul>
     </p>
-    <h2>Custom Query</h2>
+    <h2>Custom Query - Simple Interface</h2>
     <form action="composequery.php" method="get">
     <table>
   <tr>
@@ -163,5 +163,24 @@ function links_of($name,$q,$limits){
   </tr>
  </table>
 </form>
+<h2>Custom Query - raw SQL</h2>
+<form action="showquery.php" method="get">
+<table>
+<tr><td>'bench' table description:</td></tr>
+</tr>
+<? query("describe bench","printer"); ?>
+</tr>
+<tr><td></td></tr>
+<tr><td>SQL (only one query, ';' if present must terminate the query, no characters allowed after it):</td></tr>
+<tr><td>
+<textarea rows="10" cols="80" name="query"/>select SUM(time) from bench;</textarea>
+</td>
+</tr>
+<tr><td>
+<input type="submit" value="Submit" class="button" /></td>
+</tr>
+</table>
+</form>
+
 </body>
 </html>