Hi all,
We are getting CPU warning temeratures sometimes and our server is shutdown at 80 degree F. We notice our server room temperature at 18 degree celcius . Our we have already cleaned dust from grills near CPU Fan . CPU fans are working (moving) . It is our experience that CPU... (5 Replies)
Hi,
I have a file content like:
:
:
<span class="ColorRed"> 1.23</span><br>
:
:
the value 1.23 will be changed from time to time, and I want to use a shell script command, e.g grep or sed, to retrieve only the value, how to do it?
Thanks!
Victor (6 Replies)
There are two files one is shell script (sample.sh) and another is configuration file (sampl_conf.cfg)
configuration file contains one variable $FTP_HOME. the value of this variable vaires for user to user. If user is say jadoo then value is /home/jadoo/ftp/, for user1 - /home/user1/ftp. The... (0 Replies)
There are two files one is shell script (sample.sh) and another is configuration file (sampl_conf.cfg)
configuration file contains one variable $FTP_HOME. the value of this variable vaires for user to user. If user is say jadoo then value is /home/jadoo/ftp/, for user1 - /home/user1/ftp. The... (4 Replies)
I am trying to get the data from oracle table to a variable I have tried the below code
#/usr/bin/sh
echo " I am in correct loop"
SPOOL_FILE=/app/scripts/alt.lst
sqlplus /nolog <<END_SQL
connect bindu/bindu@gis
whenever sqlerror exit failure rollback;... (4 Replies)
Hello,
I want to use shell script to generate network files (I tried with python but its taking too long).
I have a list of nodes:
node.txt
LOC_Os11g37970
LOC_Os01g07760
LOC_Os03g19480
LOC_Os11g45740
LOC_Os06g08290
LOC_Os07g02800
I have an edge-list as well: edge.txt
Source_node ... (2 Replies)
Hi,
I have been struggling to match positions output its neigbors. Can you please help ?
I have 2 files.They both have the same format (same number of columns) but first file is a kind of subset of second file
The first file looks like this (tab delimited):
1 11567687 snpid20
1 153881... (4 Replies)
Please share the doc asap as very urgently required. (1 Reply)
Discussion started by: 24ajay
1 Replies
LEARN ABOUT PHP
cubrid_insert_id
CUBRID_INSERT_ID(3) 1 CUBRID_INSERT_ID(3)cubrid_insert_id - Return the ID generated for the last updated AUTO_INCREMENTcolumnSYNOPSIS
string cubrid_insert_id ([resource $conn_identifier])
DESCRIPTION
The cubrid_insert_id(3) function retrieves the ID generated for the AUTO_INCREMENT column which is updated by the previous INSERT query.
It returns 0 if the previous query does not generate new rows, or FALSE on failure.
Note
CUBRID supports AUTO_INCREMENT for more than one columns in a table. In most cases, there will be a single AUTO_INCREMENT column in
a table. If there are multiple AUTO_INCREMENT columns, this function should not be used even if it will return a value.
PARAMETERS
o $conn_identifier
- The connection identifier previously obtained by a call to cubrid_connect(3).
RETURN VALUES
A string representing the ID generated for an AUTO_INCREMENT column by the previous query, on success.
0, if the previous query does not generate new rows.
FALSE on failure.
CHANGELOG
+--------+---------------------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+---------------------------------------------------+
| 8.4.0 | |
| | |
| | Change the return value from an array to string; |
| | Remove the first parameter class_name. |
| | |
+--------+---------------------------------------------------+
EXAMPLES
Example #1
cubrid_insert_id(3) example
<?php
$conn = cubrid_connect("localhost", 33000, "demodb");
@cubrid_execute($conn, "DROP TABLE cubrid_test");
cubrid_execute($conn, "CREATE TABLE cubrid_test (d int AUTO_INCREMENT(1, 2), t varchar)");
for ($i = 0; $i < 10; $i++) {
cubrid_execute($conn, "INSERT INTO cubrid_test(t) VALUES('cubrid_test')");
}
$id = cubrid_insert_id();
var_dump($id);
cubrid_disconnect($conn);
?>
The above example will output:
string(2) "19"
PHP Documentation Group CUBRID_INSERT_ID(3)