Sponsored Content
Top Forums Shell Programming and Scripting query to get a value from database Post 302151796 by ermur on Monday 17th of December 2007 11:18:39 AM
Old 12-17-2007
Semicolon

Hi Vivek

You forgot to put the semicolon (Smilie at the end of the query, that's why your query is not executed.

Regards

Erwin
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

storing database query in a variable

I am executing a SQL query in Unix Server: select status,location from user_information where request_id='DS-43720' In shell script I am writing this query in the below manner: echo "select status,location from user_information where request_id='DS-43720' ;" >> $directory/info.sql ... (3 Replies)
Discussion started by: debu
3 Replies

2. Shell Programming and Scripting

Database Query

Hi, Am using informix database. When i give "isqlrf <database name> - " from the command prompt , i get connected to the database and i can run sql queries.. I am moving to freeBSD and when i give the same command at the prompt i get an error : Index already exists on column Why is this... (0 Replies)
Discussion started by: jisha
0 Replies

3. Shell Programming and Scripting

To spool output from a database query

Hi all, I would want to spool file for a database query, however by using crontab, the file is not spooled. Below shows my script: ORACLE_HOME="/u01/oraprod/perpdb/10.1.0/db_1" OUTFILE="/tmp/invalid.out" FILE="$HOME/admin/scripts" $ORACLE_HOME/bin/sqlplus -s "/as sysdba"... (0 Replies)
Discussion started by: *Jess*
0 Replies

4. IP Networking

Network Tweaking - Database Query Across Internet

Hi We run a script that queries a database via the internet and we need the fast possible connections to the database server. I have centos server which sends the requests to the database across the internet . it sends upto 800 queries per milliseconds however this using the default... (4 Replies)
Discussion started by: um08
4 Replies

5. Programming

Oracle Database Query

How can i modify the below to search for the things i'm looking for during a certain time frame? select Node, NodeAlias, Summary, Tally, AlertKey, AlertGroup, Manager, Agent from mrtg_alerts where LastOccurrence > '5-Dec-2010' order by Manager desc; In this particular case, this query is... (3 Replies)
Discussion started by: SkySmart
3 Replies

6. Shell Programming and Scripting

Help with script to create users from database query

#!/bin/bash user=`mysql userList -uuserlist -puserlistpassword -s -N -e "SELECT userName FROM users WHERE activated='n'"` for i in $user; do useradd "$i" -m doneThis is what I have done so far. But obviously it still does not work. I'm trying to create users based on information stored in a... (5 Replies)
Discussion started by: bucketuk
5 Replies

7. Shell Programming and Scripting

How to run a remote database query?

Thank you for taking the time to read my issue. I need to set up a script to run from a wagon wheel type toplogy where 1 server needs to query about 10 to 15 remote servers for duplicate values in a database table. If a duplicate value is found, send an email to me( or wall command to console).... (5 Replies)
Discussion started by: lutador72
5 Replies

8. Shell Programming and Scripting

How to print multiple rows from database query?

HI, I am having scenario like to print multipule rows from output of database query sample query i mentioned below code=`db2 -x select code,values from dummy` in the query output i am getting around 110 records with 2 columns. sample output pasted below code,value... (3 Replies)
Discussion started by: bhaskar v
3 Replies

9. Programming

Database query

I am getting an error function in date formate while importing the date ccolumn in oracle sql developer tool My date format in table is 6-Nov-14 and while importing its converted to 6/11/14 eventhough the format is as 6-Nov-14 in excel. could you please let help me out what I need to change... (6 Replies)
Discussion started by: ramkumar15
6 Replies

10. Programming

Hierarchical Query for Sybase database

Team I am using DBartisan tool for sybase database. I have a table that has below fields Employee_ID,EMP_Name,First_Nm,Last_Nm,Emp_Designation,Employee's_Manager is it possible to retrieve hierarchical data based on below fields Emp_Designation will have Soft Engg,SSE,Team Lead,... (6 Replies)
Discussion started by: Perlbaby
6 Replies
GLQUERYCOUNTER(3G)						  [FIXME: manual]						GLQUERYCOUNTER(3G)

NAME
glQueryCounter - record the GL time into a query object after all previous commands have reached the GL server but have not yet necessarily executed. C SPECIFICATION
void glQueryCounter(GLuint id, GLenum target); PARAMETERS
id Specify the name of a query object into which to record the GL time. target Specify the counter to query. target must be GL_TIMESTAMP. DESCRIPTION
glQueryCounter causes the GL to record the current time into the query object named id. target must be GL_TIMESTAMP. The time is recorded after all previous commands on the GL client and server state and the framebuffer have been fully realized. When the time is recorded, the query result for that object is marked available. glQueryCounter timer queries can be used within a glBeginQuery() / glEndQuery() block where the target is GL_TIME_ELAPSED and it does not affect the result of that query object. NOTES
glQueryCounter is available only if the GL version is 3.3 or higher. ERRORS
GL_INVALID_OPERATION is generated if id is the name of a query object that is already in use within a glBeginQuery() / glEndQuery() block. GL_INVALID_VALUE is generated if id is not the name of a query object returned from a previous call to glGenQueries(). GL_INVALID_ENUM is generated if target is not GL_TIMESTAMP. SEE ALSO
glGenQueries(), glBeginQuery(), glEndQuery(), glDeleteQueries(), glGetQueryObject(), glGetQueryiv(), glGet() COPYRIGHT
Copyright (C) 2010 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/. [FIXME: source] 05/30/2012 GLQUERYCOUNTER(3G)
All times are GMT -4. The time now is 06:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy