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 8133831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T09:46:35+00:00 2026-06-06T09:46:35+00:00

Hi am having a query in mysql as follows show tables like ‘stud%’ ,

  • 0

Hi am having a query in mysql as follows show tables like 'stud%', Suppose i want to give an alias over that how can it be done.

I tried the following

show tables like 'stud%' as stud_tables. Its not working.

Is it possible..?am not sure..Anyway i just need to give a column name as part of the list am getting when i execute the first query.. show tables like 'stud%'

  • 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-06-06T09:46:38+00:00Added an answer on June 6, 2026 at 9:46 am

    Maybe you could try the more complex way using the [INFORMATION_SCHEMA database][1]:

    http://sqlfiddle.com/#!2/0d110/6

    SELECT t.TABLE_NAME AS stud_tables
    FROM   INFORMATION_SCHEMA.TABLES AS t
    WHERE  t.TABLE_TYPE = 'BASE TABLE' -- exclude system tables
      AND  t.TABLE_SCHEMA = 'db_0d110' -- database name
      AND  t.TABLE_NAME LIKE 'stud%'   -- table name
    

    http://dev.mysql.com/doc/refman/5.0/en/tables-table.html

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

Sidebar

Related Questions

I'm having this Mysql query, It works: SELECT nom ,prenom ,(SELECT GROUP_CONCAT(category_en) FROM (SELECT
I am having trouble with the following MYSQL query and are hoping that there
I'm trying to query a MySQL database using an array but I'm having trouble!
I am having trouble getting well formatted results from my mysql query. Here is
So, I'm having some problems with a MySQL query (see other question ), and
I having a query with 10 tables joined. Do i need to follow any
I`m having trouble trying to optimize this query with OVER (PARTITION BY ...) because
I am having a rather, for me, complicated mysql query on which I am
I'm currently working on a MySQL query, but I've been having a bit of
I'm having an issue with a MySQL query when run in php. It works

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.