Hi,
I have data from table which i want to store in a data structure. The data is as follows:
ab, 2
ab, 3
ab, 4
cd, 10
cd, 23
cd, 15
cd, 16
ef, 5
ef, 6
ef, 11
ef, 12
ef, 51
I want it in a data structure as follows:
ab 2, 3, 4
cd 23, 15, 16
ef 5, 6, 11, 12, 51
I have to pass ab and...
Thanks for the response. I am looking more specifically at how to build a dynamic selection list to show all the tables in database when a particular database is selected. I do not know how to do this. How do i know that a particular database is selected.
I am new to php and I am trying to write a database management tool in php. The database i am using is Mysql. I am planning to have 3 selection lists. The first selection list displays all the databases in MySQL database. When any one database is selected the 2nd selection list displays all the...
I am looking for an efficient way to search elements in the following data structure
struct x {
int item;
struct node *element;
}
struct node {
int a;
struct node *ptr;
}
There can be many possible elemets associated for each item and there can be many items. All of this are stored...
I have written a client-server process to send records from box A to B in C. The record is sent to B as follows:
%03d\0<pipe delimited record>\0
The first field is the length of the record and the second one is the actual pipe delimited string(The way to send the record can be changed).
There...
I have written a client-server process to send records from box A to B in C. The record is sent to B as follows:
%03d\0<pipe delimited record>\0
The first field is the length of the record and the second one is the actual pipe delimited string(The way to send the record can be changed)...
I need help in finding an efficient way of storing the following data. I just want to store all the information in one data structure. The data that will be obtained contains the following info:
The data contains server names.
Each server name will have a socket that it needs to write to...
I have written a package in Tcl to log data to a file. This package creates one file per day and the users can log data to this file. Many users will eventually start using the pacakage and might write to the file at the same time. Is there a way in Tcl to do file locking so that only one...
I have string which I need to parse and load it into database. The string contains 7 columns and is pipe delimited and some columns might be empty spaces. For empty space I need to load them into database as null values but the problem is I can not read the nulls in C.
The string to be parsed...
Hi,
I have the following strings and I need to parse the information into variables like month, date, time, node, process, time_to_insert(1391/1324 from below strings).
Sep 7 00:05:01 a3 asdf: 1 p1 --> Time_To_Insert=1391
Sep 14 00:05:01 a3 asdf: 1 p1 --> add=1324
I used the split function...
Hi,
I want to add a value to an already existing data in the table. For ex:
Table A:
a b c
10 20 30
40 50 60
I want to add 50 to column a and column b so that the result looks like this:
Table A:
a b c
60 70 30
90 100 60
Can anyone tell me if i can acheive this using one sql...
Sorry if i am asking a simple question. What is the command for installing the below script as package in perl.
package package1;
BEGIN { }
sub subroutine1 {print "Hello!\n"}
sub subroutne2 {subroutine1()}
return 1;
END { }
Hi,
I have perl script which contains all functions. Now how can i call these functions from another script. Do i need to install the first script as a package. If so can anyone tell me how i can do it.
Thanks in advance
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.