Search Results

Search: Posts Made By: megha2525
7,764
Posted By spacebar
Use a '#' sign for sed delimiter instead of a...
Use a '#' sign for sed delimiter instead of a '/':
echo RUNDATE | sed "s#RUNDATE#$NOW#g"
2,551
Posted By Corona688
What's your system? Not all systems support a...
What's your system? Not all systems support a regex for awk's field separator. GNU awk does, few others do.

You can do this in any Bourne shell:

USERDATE="2012/09/19 00:00:00"

IFS=":/ "...
Forum: Programming 01-20-2012
1,546
Posted By durden_tyler
Perform a left outer join of your cursor with...
Perform a left outer join of your cursor with table2 on the conditions specified in my earlier post. Use the nvl2 function to fill in "gaps" in rep_id column.

tyler_durden
Forum: Programming 01-18-2012
1,546
Posted By durden_tyler
Here's an update statement that should do the...
Here's an update statement that should do the trick -


SQL>
SQL> -- Before update
SQL> select * from table1;

DEPT_ID DEPT_NAME REP_ID ADMIN_LASTNAME
----------...
Forum: Programming 12-16-2011
1,310
Posted By radoulov
Something like this: update <table_name> ...
Something like this:

update <table_name>
set amount = 0
where rowid != (
select max(rowid)
from <table_name> a
where t.id = a.id
and t.amount = a.amount
);
For...
33,556
Posted By shamrock
Then all you have to do is separate the numeric...
Then all you have to do is separate the numeric regular expression from the one that is null by a vertical bar...
if [[ "$var" = ?(""|*([+-])*([0-9])*(.)*([0-9])) ]]; then
33,556
Posted By shamrock
The problem with your expression is that the...
The problem with your expression is that the number may contain a + and/or a decimal point or it may not but you arent making that clear to ksh so how about a simpler regular expression like...
...
20,011
Posted By durden_tyler
$ $ $ # Here's my Oracle SQL script $ $...
$
$
$ # Here's my Oracle SQL script
$
$ cat -n myscript.sql
1 set verify off feed off time off timing off
2 declare
3 v1 varchar2(10);
4 v2 varchar2(10);
5...
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 03:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy