Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3803282
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T14:20:19+00:00 2026-05-19T14:20:19+00:00

And once again I have found an issue that I don’t know how to

  • 0

And once again I have found an issue that I don’t know how to fight with. Let’s assume we have the following testing code:

private static final String CREATE_TEMPORARY_TABLE =
        "CREATE TEMPORARY TABLE T1 (\n" +
        "\tA FLOAT(4, 1),\n" +
        "\tB FLOAT(5, 2),\n" +
        "\tC FLOAT,\n" +
        "\tD INTEGER\n" +
        ") ENGINE = MEMORY;";

private final String[] SHOW_TABLE_TYPES = new String[] {
        //"TABLE",
        "VIEW", "SYSTEM TABLE", "GLOBAL TEMPORARY", "LOCAL TEMPORARY", "ALIAS", "SYNONYM"
};

private void createTemporaryTable(Connection connection) throws SQLException {
    final PreparedStatement statement = connection.prepareStatement(CREATE_TEMPORARY_TABLE);
    statement.execute();
    statement.close();
}

private void showTables(Connection connection) throws SQLException {
    final ResultSet set = connection.getMetaData().getTables(null, null, null, SHOW_TABLE_TYPES);
    while ( set.next() ) {
        out.println(format("%s %s %s %s %s",
                set.getString("TABLE_CAT"),
                set.getString("TABLE_SCHEM"),
                set.getString("TABLE_NAME"),
                set.getString("TABLE_TYPE"),
                set.getString("REMARKS")
        ));
    }
    set.close();
}

@Override
public void test(Connection connection) throws SQLException {
    createTemporaryTable(connection);
    showTables(connection);
}

Expected result is writing the T1 table meta data into the out stream. But nothing happens, and it seems that getTables() does not take into account the temporary tables. Don’t know how I can resolve it… Is a work-around there? Your help is really very appreciated. Thanks a lot in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T14:20:20+00:00Added an answer on May 19, 2026 at 2:20 pm

    MySQL sometimes does not provide support even for stupid things. There is no solution for the issue. Closed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need your expertise once again. I have a java class that searches a
I have been looking around and found no solution for this issue. Let say
I have once again fleshed out Ruby, after two years of not touching it,
Once again a question about the garbage collector in actionscript-3: If I have a
Once again I was in a design review, and encountered the claim that the
I have tried to mess with xulrunner before, and now I'm trying once again
Once again.. i have the trigger below which has the function to keep/set the
Once again one of those: Is there an easier built-in way of doing things
Once again a very beginner-ish question, but here I go: I would like to
Once again I'm doing Java graphics (Graphics2D) but I noticed there is no Polygon.Double

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.