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

Oracle – Table Structure

Posted on November 14, 2013October 26, 2015 By David Kittell
SELECT atc.TABLE_NAME
	,atc.COLUMN_NAME
	,atc.DATA_TYPE
	,CASE DATA_TYPE
		WHEN 'VARCHAR2'
			THEN '(' || DATA_LENGTH || ')'
		WHEN 'NUMBER'
			THEN CASE
					WHEN DATA_PRECISION IS NOT NULL
						THEN '(' || DATA_PRECISION || CASE
								WHEN DATA_SCALE <> 0
									THEN ',' || DATA_SCALE
								END
					END || CASE
					WHEN DATA_PRECISION IS NOT NULL
						THEN ')'
					END
		END DATA_LENGTH
FROM all_tab_columns atc
WHERE atc.TABLE_NAME = '<Table Name>';
Originally Posted on November 14, 2013
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 Oracle SQL

Post navigation

Previous post
Next post

Related Posts

Reorganize Directory By File Count

Posted on May 26, 2020August 17, 2024

$filesperfolder = 1000 $sourcePath = "c:\Pictures" $destPath = "c:\Pictures\imgOrg" $i = 0 $folderNum = 1 if (!(Test-Path "$destPath")) { New-Item -Path "$destPath" -Type Directory -Force } Get-ChildItem "$sourcePath\*.jpg" | % { New-Item -Path ($destPath + "\" + $folderNum) -Type Directory -Force Move-Item $_ ($destPath + "\" + $folderNum) -Verbose $i++…

Read More

PowerShell – Download Latest WordPress Plugin XML List

Posted on November 19, 2015November 23, 2015

This script below is an extension of this script PowerShell Download Latest WordPress Plugin. This download script uses two XML files, primary XML will serve as the configuration file where the secondary will have the plugins that we currently have installed and then this script will run through the XML…

Read More

Read Text File Content With Try Catch

Posted on September 18, 2013October 26, 2015

Imports System.IO public class Test public Shared Sub Main Dim srReader As IO.StreamReader Dim strLine As String Dim blnDone As Boolean = False Dim strFileName As String = "test.txt" ‘Read text from a file and display it in a list box. srReader = New IO.StreamReader(strFileName) Try While Not blnDone strLine…

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