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
and after building the database i realized that i didn't need the whole data. i am required to not only delete content of database related to seq2 to seq4 but also delete content related to last 200 bytes in seq1
Basically i am required to retain only first 100 mb of data in seq1.
without going through the whole procedure of rebuilding the db could i delete contents of database corresponding to these requirements.
i know its a little unusal but could some one give a direction.
Hi all
:wall:
Can anyone advise how do I use ls to do a selective amd sorted listing of file that I want to have as below?
Am looking for files that are named as log_<nnnn>.txt, where <nnnn> are numeric, i.e. I want to have a listing sorted from the newest to the oldest of files that... (7 Replies)
I need RegEx to delete text block delimited by "^--" and "^request saved" if the block contained the pattern "FAILED:No air,rail,hotel or car" in the following.
Many thanks in advance!
company_id=9292 queue_id=72 internationalOnly=0
Building XML...
ABC123
Adding passenger first=First ... (1 Reply)
Hi,
This may not be the right forum but i am hoping someone knows an answer to this.
I have to capture rows for a column that was deleted. How can i do that without having to write a select query?
delete from myschema.mytable where currentdatetimestamp > columnDate
this should delete 5... (4 Replies)
Hi All.
I didnt know how to put this question as but i want to delete my values following string_X but need to retain the data in it.
I hope the following might help me in conveying my doubt.
My sequence looks like this.
>string_1 CAJW010000001... (3 Replies)
Hi
I have a question on appending and deleting entries in mysql table.
This is my sample table. table name: details
id_name | model | mode | media| first | end | id | level |
+--------------------+-------+---------+-----+-------+-------+--------+--------+
| PSK_30s1207681L002 | -1 | 1... (7 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)
Hello,
I am trying to remove some rows in a table, which are including a phrase at a defined column but i could not find the unique result for this.
What I wish to do is to remove all lines including http://xx.yy at link column
... (2 Replies)
Hi All,
I want to run multiple sql queries and store the data in variable but i want to use sql command only once. Is there a way without running sql command twice and storing.Please advise.
Eg :
Select 'Query 1 output' from dual;
Select 'Query 2 output' from dual;
I want to... (3 Replies)
Discussion started by: Rokkesh
3 Replies
LEARN ABOUT OSF1
firstkey
dbm(3) Library Functions Manual dbm(3)NAME
dbminit, fetch, store, delete, firstkey, nextkey, forder - Database subroutines
LIBRARY
DBM Library (libdbm.a)
SYNOPSIS
#include <dbm.h>
typedef struct {
char *dptr;
int dsize; } datum;
int dbminit(
char *file );
datum fetch(
datum key );
int store(
datum key,
datum content );
int delete(
datum key );
datum firstkey( void );
datum nextkey(
datum key );
long forder(
datum key );
PARAMETERS
Specifies the database file. Specifies the key. Specifies a value associated with the key parameter.
DESCRIPTION
The dbminit(), fetch(), store(), delete(), firstkey(), nextkey(), and forder() functions maintain key/content pairs in a database. They
are obtained with the -ldbm loader option. The dbm library is provided only for backwards compatibility, having been obsoleted by the ndbm
functions in libc. See the manual page for ndbm for more information.
The dbminit(), fetch(), store(), delete(), firstkey(), nextkey(), and forder() functions handle very large databases (up to a billion
blocks) and access a keyed item in one or two file system accesses. Arbitrary binary data, as well as normal ASCII strings, are allowed.
The database is stored in two files. One file is a directory containing a bit map and has .dir as its suffix. The second file contains
all data and has .pag as its suffix.
Before a database can be accessed, it must be opened by the dbminit() function. At the time that dbminit() is called, the file.dir and
file.pag files must exist. (An empty database is created by creating zero-length .dir and .pag files.)
Once open, the data stored under a key is accessed by the fetch() function and data is placed under a key by the store() function. A key
(and its associated contents) is deleted by the delete() function. A linear pass through all keys in a database may be made by use of the
firstkey() and nextkey() functions. The firstkey() function returns the first key in the database. With any key, the nextkey() function
returns the next key in the database. The following code traverses the database: for (key = firstkey(); key.dptr != NULL; key = nex-
tkey(key))
RETURN VALUES
Upon successful completion, the functions that return an int return 0 (zero). Otherwise, a negative number is returned. The functions
that return a datum indicate errors with a null (0) dptr .
RELATED INFORMATION
Functions: ndbm(3) delim off
dbm(3)