03-02-2005
How can I help you learn?
3 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I don't understand this, can anyone explain the evaluation logic used here, and I would really appreciate a general explanation for it.
----------------------
Here's the korn script:
--------------------
#! /usr/bin/ksh
if ]
then
echo true
else
echo false
fi
if (( 2 > 10 ))
then... (1 Reply)
Discussion started by: numstr
1 Replies
2. Shell Programming and Scripting
exam is a ksh script. In command line I enter: exam 3 param_2 param_3 param_4.
In exam how can I get the value of the parameter which position is specified by the first argument.
Simply doing this DOES NOT work:
offset=$1
value=$$offset
can you figure out any possible way to interpret a... (5 Replies)
Discussion started by: i27oak
5 Replies
3. UNIX for Dummies Questions & Answers
Hi all.
So I have a problem. I have been doing real good figuring this stuff out on my own but Im a newbie and stuck on something that is probably real basic.
I want to get the following output from the who command:
User TTY Date Time
gd22a12 pts/1 Feb 1 11:34
gd22a13 pts/3 Feb 1... (13 Replies)
Discussion started by: losingit
13 Replies
LEARN ABOUT PHP
db2_stmt_error
DB2_STMT_ERROR(3) 1 DB2_STMT_ERROR(3)
db2_stmt_error - Returns a string containing the SQLSTATE returned by an SQL statement
SYNOPSIS
string db2_stmt_error ([resource $stmt])
DESCRIPTION
Returns a string containing the SQLSTATE value returned by an SQL statement.
If you do not pass a statement resource as an argument to db2_stmt_error(3), the driver returns the SQLSTATE value associated with the
last attempt to return a statement resource, for example, from db2_prepare(3) or db2_exec(3).
To learn what the SQLSTATE value means, you can issue the following command at a DB2 Command Line Processor prompt: db2 '? $sqlstate-
value'. You can also call db2_stmt_errormsg(3) to retrieve an explicit error message and the associated SQLCODE value.
PARAMETERS
o $stmt
- A valid statement resource.
RETURN VALUES
Returns a string containing an SQLSTATE value.
SEE ALSO
db2_conn_error(3), db2_conn_errormsg(3), db2_stmt_errormsg(3).
PHP Documentation Group DB2_STMT_ERROR(3)