Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

MySQL – Table/View Column Information

Posted on March 1, 2014October 26, 2015 By David Kittell

Similar to MSSQL – Table/View Column Information, this post will help with MySQL tables and columns.

This query is a quick query to give you the pertinent information about a specific table.

DESCRIBE <Table Name>;
select * from `information_schema`.`columns`
WHERE table_name = '<Table Name>';
SELECT 
    table_name,
    Replace(GROUP_CONCAT(CONCAT(column_name, ', ', table_name)),CONCAT(', ', table_name), '')
FROM
    `information_schema`.`columns`
WHERE
WHERE table_schema = '<DatabaseName>'
GROUP BY table_name;
Originally Posted on March 1, 2014
Last Updated on October 26, 2015
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Code MSSQL MSSQL - Audit MySQL SQL

Post navigation

Previous post
Next post

Related Posts

PowerShell – Install Ubuntu WSL (Linux On Windows)

Posted on August 25, 2020August 17, 2024

If you have issues like I have had with the Windows Store this will help you to get Ubuntu WSL on Windows. NOTE: You may need to reboot your computer after the first line. Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux #Install-WindowsFeature -Name Microsoft-Windows-Subsystem-Linux Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-1604 -OutFile ~/Downloads/ubuntu-1604.zip New-Item -Path c:\ubuntu-1604 -ItemType…

Read More

Android Contacts – Remove Spaces / Line Breaks From Postal Address

Posted on February 21, 2014October 26, 2015

UPDATE data SET data1 = ltrim(ifnull(data4, ”) || ‘ ‘ || ifnull(data5, ”) || ‘ ‘ || ifnull(data6, ”) || ‘ ‘ || ifnull(data7, ”) || ‘ ‘ || ifnull(data8, ”) || ‘ ‘ || ifnull(data9, ”) || ‘ ‘ || ifnull(data10, ”)) WHERE mimetype_id IN ( SELECT _id FROM…

Read More

DNN – Regain User Access

Posted on March 25, 2015October 26, 2015

If you have ever been locked out of a DNN site you maintain (must have SQL access) this solution will help. NOTE: If you don’t have SMTP settings configured this process will not help First find your “Portals” table and update “UserRegistration” = 2 Note: In the example below I…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes