08-10-2011
RE:
I think this is write query.
This User Gave Thanks to 3magic For This Post:
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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
2. Shell Programming and Scripting
Hi, unix gurnis
I need help for following requirement for writing a shell scritp.
log in to oracle database, query one table total records (select count(*) from table1), pass the return value to a file.
Thanks in advance (2 Replies)
Discussion started by: ken002
2 Replies
3. Shell Programming and Scripting
Hi, this's Pom. I'm quite a new one for shell script but I have to do sql on shell script to query some information from database.
I found a concern to get a new line...When I run my script, it retrieves all data as wondering but it's shown in one line :(
What should I do? I'm not sure that... (2 Replies)
Discussion started by: Kapom
2 Replies
4. UNIX for Dummies Questions & Answers
----
srcfile=/xxx/yyy/abc.txt
Mode=1
if ; then
echo "inside if"
else
echo "not inside if"
fi
----
The size of the file /xxx/yyy/abc.txt is 1 mb
If i exec the above if condition, what is the output that i will get?
what does "-o " means in the if condition
The... (1 Reply)
Discussion started by: kmanivan82
1 Replies
5. Shell Programming and Scripting
I have written a shell script that calls below sql file. It is not sending the query data in table in the body of email.
spool table_update.html;
SELECT * FROM PROCESS_LOG_STATS where process = 'ActivateSubscription';
spool off;
exit;
Please use code tags next time for your code and data.... (9 Replies)
Discussion started by: Sharanakumar
9 Replies
6. Shell Programming and Scripting
Hello All,
I have a requirement in which i will be given a sql query as input in a file with dynamic number of columns. For example some times i will get 5 columns, some times 8 columns etc up to 20 columns.
So my requirement is to generate a output query which will have 20 columns all the... (7 Replies)
Discussion started by: vikas_trl
7 Replies
7. Shell Programming and Scripting
#! /bin/ksh
#] && . ./.profile 2>/dev/null
if test -f '.profile'; then . ./.profile; fi;
#. .profile
LOG_DIR=/app/rpx/jobs/scripts/just/logs
sendEmail()
{
pzCType="$1"; pzTitle="$2"; pzMsg="$3"; pzFrom="$4"; pzTo="$5"; pzFiles="$6"; pzReplyTo="$7"
(
... (21 Replies)
Discussion started by: ankit.mca.aaidu
21 Replies
8. Solaris
Hi
I am trying to run sql query from solaris in csh script and send the output to email. Below is my sql query
select p.spid,se.program seprogram, se.machine, se.username, sq.sql_text,sq.retrows from v$process p
inner join v$session se on p.addr = se.paddr
inner join
( select... (2 Replies)
Discussion started by: tharmendran
2 Replies
9. Programming
Dear team
I am using DB2 and wish to capture the ETL status on daily basis so that i can run the query and share the details in xls format to respective mail ids .
Currently i am using below query but this displays table name and counts for latest run.
select name ,CARD from... (0 Replies)
Discussion started by: Perlbaby
0 Replies
LEARN ABOUT DEBIAN
plucene::search::booleanquery
Plucene::Search::BooleanQuery(3pm) User Contributed Perl Documentation Plucene::Search::BooleanQuery(3pm)
NAME
Plucene::Search::BooleanQuery - a boolean query
SYNOPSIS
# isa Plucene::Search::Query
$query->add(Plucene::Search::Query $query, $required, $prohibited);
$query->normalize($norm);
my @clauses = $query->clauses;
my $sum_sq_weights = $query->sum_squared_weights($searcher);
my $as_string = $query->to_string($field);
DESCRIPTION
A query that matches documents matching boolean combinations of other queries, typically TermQuerys or PhraseQuery
A boolean query represents a composite query that may contains subqueries of arbitrary nesting level and with composition rules such as
'and', 'or' or 'not'.
Boolean queries are represented in Plucene API by instances of the BooleanQuery class. Each BooleanQuery object contains a list of
subqueries that are linked using instances of the adaptor class BooleanClause. The subqueries may be of any Query type such as term query,
phrase query and nested boolean queries.
Each sub query of a boolean query has two binary qualifiers that controls how its super query is matched. These qualifiers are
o prohibited - when this flag is set, the matching status of the subquery is negated such that the query is considered as a match only
when the sub query does not match.
o required - when this flag is set, the sub query is required to match (or not to match if its 'prohibited' flag is set) for the super
query to match. This this is a necessary but not sufficient condition for the super query to match.
METHODS
add
$query->add(Plucene::Search::Query $query, $required, $prohibited);
Adds a clause to a boolean query. Clauses may be:
required
which means that documents which do not match this sub-query will not match the boolean query;
prohibited
which means that documents which do match this sub-query will not match the boolean query; or
neither, in which case matched documents are neither prohibited from nor required to match the sub-query.
It is an error to specify a clause as both required and prohibited.
add_clause
$self->add_clause(Plucene::Search::BooleanClause $c);
Adds an already-formed clause onto the query.
clauses
my @clauses = $query->clauses;
sum_squared_weights
my $sum_sq_weights = $query->sum_squared_weights($searcher);
normalize
$query->normalize($norm);
to_string
my $as_string = $query->to_string($field);
perl v5.12.4 2011-08-14 Plucene::Search::BooleanQuery(3pm)