Usage: ./isip_dialog_makedb_clear_tables.exe <0/1> <0/1> <0/1> <0/1> [user] [pass] [host] [database] where all the <0/1>'s are required [user] [pass] [host] [database] are optional, BUT all must be present if one is present. In order, the 0/1's represent: 1) 'address' table 2) 'campusname' table 3) 'route' table 4) 'place' table If the input value converts to the number "1" then the respective table is cleared. The usage is atoi() so if the input is "1ac10" then atoi() will convert that to "1" and it will be cleared. If the value is anything besides "1", the table will not be cleared. The queries used to clear each table are as follows: address table ======= delete from address where id != 100000 ======= campusname table ======= delete from campusname where id != 100000 ======= route table ======= delete from route where sid != 100000 or did != 100000 ======= place table ======= delete from place where id != 100000 ======= So if there are any values with the 'id' of "100000" then this script will not clear them. Since the number of id is incremented by one, this should never be a problem.