Is it possible to use the inputdlgfunction to execute an SQL query such as below :
pdbSearchQuery = input('Enter your PDB Code: ', 's');
curs = fetch(exec(conn, ['SELECT * FROM cath_2_wo_dup WHERE pdbcode = ' '''' pdbSearchQuery '''']));
pdbSearchResults = curs.Data
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.
It would look like this at the end:

When they click 'OK', it would lead that button to execute another script where it will create the tables and figures for them.
Is this possible to do in inputdlg or is there another function that does this similar method?