Sponsored Content
Full Discussion: can't find sql file
Top Forums Programming can't find sql file Post 302470697 by Corona688 on Wednesday 10th of November 2010 09:50:00 PM
Old 11-10-2010
Try
Code:
SHOW TABLES;

and
Code:
SELECT * FROM username;

also
Code:
SHOW COLUMNS FROM username;

allcaps optional, though I like to capitalize everything but table and column names so I can easily pick them out.

Proper SQL for MySQL and a bunch of other databases can be found at A Gentle Introduction to SQL

Last edited by Corona688; 11-10-2010 at 10:57 PM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

(perl) Microsoft SQL Server client for solaris. cant find it...

let me save everyone the pain that it caused me. This is all free. And make sure it is in this order 1) make sure you have the latest version of perl installed 2) make sure you have NET:aemon installed 3) make sure you have RPC::PlServer & PlClient (the bundle has both) 4) make sure... (3 Replies)
Discussion started by: Optimus_P
3 Replies

2. UNIX for Dummies Questions & Answers

Execute PL/SQL function from Unix script (.sql file)

Hi guys, I am new on here, I have a function in oracle that returns a specific value: create or replace PACKAGE BODY "CTC_ASDGET_SCHED" AS FUNCTION FN_ASDSCHEDULE_GET RETURN VARCHAR2 AS BEGIN DECLARE ASDSchedule varchar2(6); ASDComplete... (1 Reply)
Discussion started by: reptile
1 Replies

3. Shell Programming and Scripting

How to find out which sql i have installed .

I use CentOS . I want to know how to find out which sql i have installed .. Can anyone tell .. (2 Replies)
Discussion started by: madhumathikv
2 Replies

4. Shell Programming and Scripting

Find 5 lines and replace with 18 line in sql file where it contains multiple blocks.

My sql file xyz_abc.sql in this file there are multiple sql block in this block I need to find the following block rem Subset Rows (&&tempName.*) CREATE VIEW &&tempName.* AS SELECT * FROM &&tempName.* WHERE f is not null and replace with following code rem Subset Rows... (9 Replies)
Discussion started by: Zaheer.mic
9 Replies

5. Shell Programming and Scripting

How to use sql data file in unix csv file as input to an sql query from shell

Hi , I used the below script to get the sql data into csv file using unix scripting. I m getting the output into an output file but the output file is not displayed in a separe columns . #!/bin/ksh export FILE_PATH=/maav/home/xyz/abc/ rm $FILE_PATH/sample.csv sqlplus -s... (2 Replies)
Discussion started by: Nareshp
2 Replies

6. Shell Programming and Scripting

wanted to find both link file and ordinary file using single find command

find . -type fl o/p is only the ordinary file. where in it wont give the link files. (2 Replies)
Discussion started by: nikhil jain
2 Replies

7. UNIX for Dummies Questions & Answers

how to find all .sql file names in all .sh unix files

Hi Guys, Can any one help me on this, I want to write unix command to get all .sh unix file name which are refered .sql files in it. Thanks Kolipaka (3 Replies)
Discussion started by: lakshmanrk811
3 Replies

8. UNIX for Dummies Questions & Answers

Hot to retrieve *.sql file names which we refer in .sh file.

Hi Guys, How to retrieve/get *.sql file names which we refer in all *.sh files. Can any one help me on this. Thanks, Kolipaka (3 Replies)
Discussion started by: lakshmanrk811
3 Replies

9. Shell Programming and Scripting

Storing multiple sql queries output into variable by running sql command only once

Hi All, I want to run multiple sql queries and store the data in variable but i want to use sql command only once. Is there a way without running sql command twice and storing.Please advise. Eg : Select 'Query 1 output' from dual; Select 'Query 2 output' from dual; I want to... (3 Replies)
Discussion started by: Rokkesh
3 Replies

10. Shell Programming and Scripting

Ksh: How to write the log file simultaneously when .sql file executes by UNIX process

Hello Team- we would like to implement an approach which has to write the log file simultaneously when .sql file is executing by Unix process. At present,it is writing the log file once the process is completed. I've tested the current process with the below approaches and none of them... (1 Reply)
Discussion started by: Hima_B
1 Replies
SHOW(7) 							   SQL Commands 							   SHOW(7)

NAME
SHOW - show the value of a run-time parameter SYNOPSIS
SHOW name SHOW ALL DESCRIPTION
SHOW will display the current setting of run-time parameters. These variables can be set using the SET statement, by editing the post- gresql.conf configuration file, through the PGOPTIONS environmental variable (when using libpq or a libpq-based application), or through command-line flags when starting the postgres server. See in the documentation for details. PARAMETERS
name The name of a run-time parameter. Available parameters are documented in in the documentation and on the SET [set(7)] reference page. In addition, there are a few parameters that can be shown but not set: SERVER_VERSION Shows the server's version number. SERVER_ENCODING Shows the server-side character set encoding. At present, this parameter can be shown but not set, because the encoding is determined at database creation time. LC_COLLATE Shows the database's locale setting for collation (text ordering). At present, this parameter can be shown but not set, because the setting is determined at database creation time. LC_CTYPE Shows the database's locale setting for character classification. At present, this parameter can be shown but not set, because the setting is determined at database creation time. IS_SUPERUSER True if the current role has superuser privileges. ALL Show the values of all configuration parameters, with descriptions. NOTES
The function current_setting produces equivalent output; see in the documentation. Also, the pg_settings system view produces the same information. EXAMPLES
Show the current setting of the parameter DateStyle: SHOW DateStyle; DateStyle ----------- ISO, MDY (1 row) Show the current setting of the parameter geqo: SHOW geqo; geqo ------ on (1 row) Show all settings: SHOW ALL; name | setting | description --------------------------------+--------------------------------+---------------------------------------------------------------------------------------------- add_missing_from | off | Automatically adds missing table references to FROM clauses. allow_system_table_mods | off | Allows modifications of the structure of system tables. . . . work_mem | 1024 | Sets the maximum memory to be used for query workspaces. zero_damaged_pages | off | Continues processing past damaged page headers. (146 rows) COMPATIBILITY
The SHOW command is a PostgreSQL extension. SEE ALSO
SET [set(7)], RESET [reset(7)] SQL - Language Statements 2010-05-14 SHOW(7)
All times are GMT -4. The time now is 07:33 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy