Sponsored Content
Full Discussion: learning on my own
Top Forums UNIX for Dummies Questions & Answers learning on my own Post 11336 by PxT on Monday 3rd of December 2001 02:40:52 PM
Old 12-03-2001
I'm not sure what you are asking. Perhaps a more specific example would help us answer your question.
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Learning UNIX

Hi guys! Am new to this forum so would like to say hello to all. Was wondering, what the best way to learn UNIX was? Theoretically or Practically? Cheers (2 Replies)
Discussion started by: bibah11
2 Replies

2. What is on Your Mind?

Learning UNIX

Alright I am looking to further my knowledge and experiance with computers (Currently a PC technician but not much knowledge with other operating systems like unix/linux). What im trying to do now is get a basic understanding of unix and its commands, unix shells, the unix directory structure, and... (5 Replies)
Discussion started by: Rycon
5 Replies

3. UNIX for Dummies Questions & Answers

Learning Unix

Hi all, and thanks for viewing this thread. I have never used the terminal (UNIX) before, not until I read an introductory book about it: Unix for Mac OS X Tiger. Now I've become intrigued, and I want to uncover more of the mysteries of Unix. I've searched and searched, but there are many books... (5 Replies)
Discussion started by: Hin
5 Replies

4. UNIX for Dummies Questions & Answers

Learning VI editor

Hi, Can you give me some good document or link to learn more about "vi" editor. I'm interested to master its short-cut keys and tricks in the VI editor, please help, thank you. (1 Reply)
Discussion started by: Dev_Dev
1 Replies

5. Web Development

Learning HTML

I have tried to create a web page browser window. An example, I copied what the book pretty much wanted but get only the header. What should I change? Also Anyone know any good books for this? Many thanks. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Translation/EN" ... (4 Replies)
Discussion started by: N-Training
4 Replies

6. What is on Your Mind?

Learning UNIX

Hi Guys , Hope everybody is fine . I am here to learn UNIX . Please provide any URLs/pdfs for learning . Thanks in advance. -Radha ---------- Post updated at 07:59 PM ---------- Previous update was at 07:48 PM ---------- Just to add , I am good at basics but unable to write scripts... (4 Replies)
Discussion started by: radha254
4 Replies

7. AIX

Learning AIX from zero.

Dear Sirs: Good afternoon, my name is Javier. I´m new to Unix and I am working as a Linux Server admin in an ISP from Argentina. I´m want to in learn AIX, and find interesting information about it on some IBM Redbooks. I would like to know if is there any possibility to Virtualize an AIX... (8 Replies)
Discussion started by: xavinux
8 Replies

8. Shell Programming and Scripting

Regex learning.

Hello All, I have come across a question from colleague about complex regex, so I written a regex using grep's -P option in PCRE regex. Since its a new learning for me, so thought to share with forums. Lets say we have a Input_file with following test data: cat Input_file PROJECT =... (8 Replies)
Discussion started by: RavinderSingh13
8 Replies
PREPARE(7)							   SQL Commands 							PREPARE(7)

NAME
PREPARE - prepare a statement for execution SYNOPSIS
PREPARE name [ ( datatype [, ...] ) ] AS statement DESCRIPTION
PREPARE creates a prepared statement. A prepared statement is a server-side object that can be used to optimize performance. When the PRE- PARE statement is executed, the specified statement is parsed, rewritten, and planned. When an EXECUTE command is subsequently issued, the prepared statement need only be executed. Thus, the parsing, rewriting, and planning stages are only performed once, instead of every time the statement is executed. Prepared statements can take parameters: values that are substituted into the statement when it is executed. When creating the prepared statement, refer to parameters by position, using $1, $2, etc. A corresponding list of parameter data types can optionally be specified. When a parameter's data type is not specified or is declared as unknown, the type is inferred from the context in which the parameter is used (if possible). When executing the statement, specify the actual values for these parameters in the EXECUTE statement. Refer to EXECUTE [execute(7)] for more information about that. Prepared statements only last for the duration of the current database session. When the session ends, the prepared statement is forgotten, so it must be recreated before being used again. This also means that a single prepared statement cannot be used by multiple simultaneous database clients; however, each client can create their own prepared statement to use. The prepared statement can be manually cleaned up using the DEALLOCATE [deallocate(7)] command. Prepared statements have the largest performance advantage when a single session is being used to execute a large number of similar state- ments. The performance difference will be particularly significant if the statements are complex to plan or rewrite, for example, if the query involves a join of many tables or requires the application of several rules. If the statement is relatively simple to plan and re- write but relatively expensive to execute, the performance advantage of prepared statements will be less noticeable. PARAMETERS
name An arbitrary name given to this particular prepared statement. It must be unique within a single session and is subsequently used to execute or deallocate a previously prepared statement. datatype The data type of a parameter to the prepared statement. If the data type of a particular parameter is unspecified or is specified as unknown, it will be inferred from the context in which the parameter is used. To refer to the parameters in the prepared statement itself, use $1, $2, etc. statement Any SELECT, INSERT, UPDATE, DELETE, or VALUES statement. NOTES
In some situations, the query plan produced for a prepared statement will be inferior to the query plan that would have been chosen if the statement had been submitted and executed normally. This is because when the statement is planned and the planner attempts to determine the optimal query plan, the actual values of any parameters specified in the statement are unavailable. PostgreSQL collects statistics on the distribution of data in the table, and can use constant values in a statement to make guesses about the likely result of executing the statement. Since this data is unavailable when planning prepared statements with parameters, the chosen plan might be suboptimal. To exam- ine the query plan PostgreSQL has chosen for a prepared statement, use EXPLAIN [explain(7)]. For more information on query planning and the statistics collected by PostgreSQL for that purpose, see the ANALYZE [analyze(7)] documenta- tion. You can see all available prepared statements of a session by querying the pg_prepared_statements system view. EXAMPLES
Create a prepared statement for an INSERT statement, and then execute it: PREPARE fooplan (int, text, bool, numeric) AS INSERT INTO foo VALUES($1, $2, $3, $4); EXECUTE fooplan(1, 'Hunter Valley', 't', 200.00); Create a prepared statement for a SELECT statement, and then execute it: PREPARE usrrptplan (int) AS SELECT * FROM users u, logs l WHERE u.usrid=$1 AND u.usrid=l.usrid AND l.date = $2; EXECUTE usrrptplan(1, current_date); Note that the data type of the second parameter is not specified, so it is inferred from the context in which $2 is used. COMPATIBILITY
The SQL standard includes a PREPARE statement, but it is only for use in embedded SQL. This version of the PREPARE statement also uses a somewhat different syntax. SEE ALSO
DEALLOCATE [deallocate(7)], EXECUTE [execute(7)] SQL - Language Statements 2010-05-14 PREPARE(7)
All times are GMT -4. The time now is 12:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy