-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drop temporary CT tables #28
Comments
Hi Zhao @JanyQZ you're right I'm missing details. Not sure what happened. Here's the kind of procedure we need. KeepTablesOnly(connection,dbname,list of tablenames)
Output: all tables in Example:
The only table left in unielwin_ct should be a_ct |
@JanyQZ Hi Jany, were you able to solve this problem? Can you please confirm that you are set up to get these messages from github? |
@oschulte Hi, Oliver, I am now working at drop_tmpTable branch. And I added a new class which named KeepTablesOnly.java. The mainly function looks like Drop_tmpTables(Connection con,String dbname,String tablename). The function is currently available to keep only one table given by the input. |
@JanyQZ sounds good! I agree with having an array of tables. |
@oschulte Hi Oliver, I found that we couldn't drop the table with a comma name, such as "a,b_counts", cause mysql automatically splits the sql query based on commas assuming they are separate tables and returns an error message which like "Unknown table x,xxx". I think we really need to standardize the tables names and not using commas. |
Hi Jany, changing table names is not a bad idea but a fair amount of work. Have you tried escaping the table name with apostrophes? E.g. drop table |
@oschulte Hi, Oliver, I've already tried both of the command, it didn't work. |
let's discuss with Vidhi |
@oschulte HI, Oliver, I found a way to solve this problem. We can wrap the table name with the symbol ``, such as |
okay great. Can we drop tables now? |
Of course we can! Also you can see all the commit changes in pull request. It works well. |
Let's review this and see if we need to add some documentation |
Jany posted the drop table code |
could use a general drop procedure
The text was updated successfully, but these errors were encountered: