I have a table which looks like this
I wanted to replace all names columns having id> 5 to sequence.
Keep the first 5 entries the same but replace all others name = "sequence[id]"
and clone entry to be changed as clone = "sequence[id]"
The table should look like this
i did use this command
What is my error?
Please do advise.
Last edited by Scott; 12-21-2013 at 04:09 AM..
Reason: Please use code tags
My sql file xyz_abc.sql in this file there are multiple sql block in this block I need to find the following block
rem Subset Rows (&&tempName.*)
CREATE VIEW &&tempName.* AS
SELECT *
FROM &&tempName.*
WHERE f is not null
and replace with following code
rem Subset Rows... (9 Replies)
I have a requirement where i have a sql file (filetext.sql). This file contains a variable ss_code.
Now in a shell script im trying to replace the variable ss_code with a value contained in the shell script variable MTK_DC..tried the below in the script
MTK_DC="mit,cit,bit"
OUT=`awk -v... (4 Replies)
Hello all. I am a beginner UNIX user who is using UNIX to work on a bioinformatics project for my university.
I have a bit of a complicated issue in trying to use sed (or awk) to "find and replace" bases (letters) in a genetics data spreadsheet (converted to a text file, can be either... (3 Replies)
Hi All,
I had a query related to sql select update replace command.
i have a table named clusters and it looks like this
name model characteristics
sample1.1 +123 parent
sample1.2 -456 clone
sample1.3 +122 ... (5 Replies)
i have a large sequence of format
sat_1_g3_g_0_8540 . A 1 15501 . . . ID=sat_1_g3_g_0_8540;parentName=sat_1_g3_g_0_8540;Al=sat_1_g2_g_0_8540;
sat_1_g3_g_2_8510 . C 1 25501 . . . ... (11 Replies)
Hi All
This might be a weird query but its related to deleting specific details in database.
Bascially I had built a database using a set of files
seq1 of 300 mb
seq2 of 200 mb
seq3 of 350 mb
seq4 of 300 mb
and after building the database i realized that i didn't need the whole data.... (6 Replies)
Hi, I have the following data:
2860377|"DATA1"|"DATA2"|"65343"|"DATA2"|"DATA4"|"11"|"DATA5"|"DATA6"|"65343"|"DATA7"|"0"|"8"|"1"|"NEGATIVE"
32340377|"DATA1"|"DATA2"|"65343"|"DATA2"|"DATA4"|"11"|"DATA5"|"DATA6"|"65343"|"DATA7"|"0"|"8"|"1"|"NEG-DID"... (3 Replies)
Hi All,
I had a query related to sql select replace command.
i have a table named clusters and it looks like this
Code:
name characteristics
sample 1.1 parent
sample 1.2 ... (2 Replies)
Hi
My input file looks like this:
>BAHMI01000090.1 Details of the shopping list 9800 item00090, whole set of listed artifacts and objects
>BAHMI01050012.1 Details of the shopping list 9800 item02310, whole set of listed artifacts and objects
>BAHMI01070078.1 Details of the shopping list ... (5 Replies)
Hi Guys,
I am using a function to replace the values dynamically to frame sql query by reading a file. My file will have column names like
file.txt
col_1
col_2
expected output:
select id,col_1,col_2 from (
select a.id,
a.col_1,
rank() over (ORDER BY cast(a.col_1 AS double)... (5 Replies)
Discussion started by: Master_Mind
5 Replies
LEARN ABOUT DEBIAN
stconvertpattern
ststring(3) ShapeTools Toolkit Library ststring(3)NAME
stConvertPattern, stSubstituteString, stStrtok, stStrEnter - string handling
SYNOPSIS
#include <config.h>
#include <sttk.h>
char* stConvertPattern (char *pattern);
char* stSubstituteString (char *original, char *old, char *new);
char* stStrtok (char *string);
char* stStrEnter (char *string);
DESCRIPTION
stConvertPattern converts sh(1) filename generation patterns to ed(1) string patterns.
question (?)
gets converted to period (.)
asterisk (*)
gets converted to a period followed by an asterisk (.*)
period (.)
will be escaped by a backslash character (.).
exclam (!)
gets converted to circumflex (^) if it follows an left bracket ([). Otherwise it remains unmodified.
The whole pattern will be enclosed in a circumflex (^) as leftmost an a dollar sign ($) as rightmost character.
stSubstituteString replaces all occurrences of substring old in original by string new. It returns a pointer to an allocated string that is
the result of this operation. Returns NULL if anything goes seriously wrong.
stStrtok considers the string string to consist of a sequence of zero or more text tokens separated by whitespace. The first call (with
pointer string specified) returns a pointer to the first character of the first token, and will have written a null character into string
immediately following the returned token. The function keeps track of its position between separate calls, so that subsequent calls (which
must be made with the string argument set to NULL) will work through the string immediately following that token. In this way subsequent
calls will work through the string until no tokens remain. When no token remains in string, a NULL pointer is returned.
stStrEnter adds the given string to an internal string table and returns a pointer to appropriate string table entry. Equal strings are
mapped to equal locations in the table. Equality of two strings in the string table can be checked by simple pointer comparison.
SEE ALSO
sh (1), ed (1)
sttk-1.7 Thu Jun 24 17:43:33 1993 ststring(3)