title: How to use the Input Dialog to execute SQL queries
body: <p>Is it possible to use the <code>inputdlg</code>function to execute an SQL query such as below :</p>
  
  <pre><code>    pdbSearchQuery = input('Enter your PDB Code: ', 's');
      curs = fetch(exec(conn, ['SELECT * FROM cath_2_wo_dup WHERE pdbcode = ' '''' pdbSearchQuery '''']));
      pdbSearchResults = curs.Data
  </code></pre>
  
  <p>I manage to do this by default, using the Command Window to search for columns in a database, but i would like to create a dialog box where users can type in a value to search the database, using the variables i have stated above.</p>
  
  <p>It would look like this at the end:</p>
  
  <p><img src="https://i.stack.imgur.com/u3yJq.jpg" alt="Search bar to search for n column from the database table"></p>
  
  <p>When they click 'OK', it would lead that button to execute another script where it will create the tables and figures for them.</p>
  
  <p>Is this possible to do in <code>inputdlg</code> or is there another function that does this similar method?</p>