query « mysql « C Q&A

Home
C Q&A
1.assembly
2.buffer
3.Card
4.Cast
5.compile
6.console
7.const
8.constructor
9.database
10.Date
11.Debug
12.Design
13.Development
14.DLL
15.encrypt
16.enum
17.eof
18.Event
19.fork
20.Format
21.gcc
22.gdb
23.graph
24.graphics
25.gui
26.Holiday Event
27.image
28.IP
29.iterator
30.macro
31.makefile
32.malloc
33.Menu
34.mysql
35.network
36.openssl
37.operator
38.password
39.pipe
40.preprocessor
41.printf
42.pthread
43.Regular expression
44.scanf
45.semaphore
46.SerialPort
47.server
48.Socket
49.sql
50.SQLserver
51.sscanf
52.std
53.stdin
54.stdout
55.stl
56.strcmp
57.stream
58.switch
59.Template
60.thread
61.timer
62.unix
63.video
64.Virtual
65.visualstudio
66.winapi
67.windows
68.xml
C Q&A » mysql » query 

1. Changing the MySQL query delimiter through the C API    stackoverflow.com

How can I change the MySQL query delimiter using the C API? I tried sending DELIMITER | as a query, complained about ..the right syntax to use near 'delimiter' at line ...

2. lost connection mysql in C    stackoverflow.com

I've written a C program thats running multiple threads and uses MySQL. After some testing i repeatedly saw the error (with hours between) "Mysql server gone away", so i maximized the ...

3. running a mysql query inside a loop of another without a sync error    stackoverflow.com

If I have code like this (irrelevant things like initialising the connection and handle omitted):

MYSQL_RES *res;
MYSQL_ROW row;
mysql_query(mysql, "some select query");
res = mysql_use_result(mysql);
while (row = mysql_fetch_row(res)) {
    MYSQL_RES *res2;
 ...

4. what is return error value of mysql_query in C?    stackoverflow.com

folks, from the following code

int a = mysql_query(conn,"INSERT into data VALUES (NULL,'tes','aja'));
how come i could make sure mysql_query is do the supposed thing, because i've tried wrong sql query and it ...

5. mysql and c -- use variable in query    stackoverflow.com

I'm writing a c program with an mysql database connection and I'm having difficulties creating my mysql queries... i want to you a variable integer in my mysql query, but i can't seem ...

6. Better and also concise way to write a query..(Mysql + C language)    stackoverflow.com

Is there a more concise way to write the following query (using Mysql + C ):

 memset(query, 0, 200);
            strcat(query, ...

7. Problem printing query result set (Mysql + C)    stackoverflow.com

I use this code in order to print a result set, but it actually does nothing... it doesn't print anything..what's wrong with that? Thanks in advance..Vera

char query[512];
    sprintf(query, "SELECT * ...

8. Segmentation fault problem with mysql_query    bytes.com

Did you ever print out query after the sprintf() statement to see what the string looked like after you stuck it in there? Also, what error are you getting? I get a segmentation fault then the program aborts. only when i add the \" or '. I did print out the string query and it contains the correct data which is: ...

9. MySQL query oddity between 2 OS's    cboard.cprogramming.com

Please allow me to preface this post with an apology. I'm not sure where the below issue is derived from, (the difference in operating systems, a MySQL problem, a C problem, etc...), so if this post is in the wrong topic, again, my apologies. ...continuing on... System Setup 1: Microsoft Windows XP Professional, SP3, 32 bit. MySQL 5.1.47 System Setup 2: ...

10. C# query to MySQL throws error    forums.devshed.com

public int getCount() { DataTable data = null; MySqlDataAdapter da; MySqlCommandBuilder cb; int total = 0; try { if (getConnection(dbName, dbHost, username, password)) { string query = "SELECT count(*) as total from tableA WHERE status > 1"; data = new DataTable(); da = new MySqlDataAdapter(query, conn); cb = new MySqlCommandBuilder(da); da.Fill(data); DataRow row = data.Rows[0]; total = (int)row.ItemArray.GetValue(0); //THIS LINE THROWS ...

11. Using queries from MySQL with newlines.    forums.devshed.com

1. I have never integrated MySQL with C/C++, and whole SetDlgItemText() function is unknown for me... But I guess it would help us if you showed where you dumb the data in row[0] (I assume that's pointer to char array, right?). Perhaps you have some problem in there? Try couting/printing the contents of row[0] before using the function to see if ...

12. Passing a variable in a MySQL query?    daniweb.com

13. Using mysql_query to printf but doesn't work    forums.devshed.com

14. IDs that have a value of 'A' AND 'C' (was "Complex query help")    forums.devshed.com

Ah, wait no, that won't work. Let me think again. I think the solution invloves joining the table to itself so that you then have a super table that has a combination of every row with every other row so that you can find A and C. But I'm not sure how to do it.

15. townname LIKE 'A%' AND townname LIKE 'B%' AND townname LIKE 'C%' (was "Query Help")    forums.devshed.com

Hi I want to do something like the following: SELECT * FROM table WHERE townname LIKE 'A%' AND townname LIKE 'B%' AND townname LIKE 'C%' ORDER BY townname but this doesn't seem to work, what am I doing wrong? Or is there an easier way to do this as I will need to also create the selection for the letters D ...

16. Query WHERE a OR b OR c IS NOT NULL    forums.devshed.com

17. Query to show all names starting with "M,K,C OR J"    forums.mysql.com

4 October 2011 - In light of a recent security incident, customers are advised to update their antivirus definitions and run a full antivirus scan on all computers that accessed the MySQL site between September 20th, 2011 and September 28th, 2011. Also, out of an abundance of caution, we advise MySQL account holders to then change their MySQL account passwords.

18. COMMIT and ROLLBACK with C API mysql_query()    forums.mysql.com

4 October 2011 - In light of a recent security incident, customers are advised to update their antivirus definitions and run a full antivirus scan on all computers that accessed the MySQL site between September 20th, 2011 and September 28th, 2011. Also, out of an abundance of caution, we advise MySQL account holders to then change their MySQL account passwords.

19. mysql_real_query() C API fails - Win XP    forums.mysql.com

4 October 2011 - In light of a recent security incident, customers are advised to update their antivirus definitions and run a full antivirus scan on all computers that accessed the MySQL site between September 20th, 2011 and September 28th, 2011. Also, out of an abundance of caution, we advise MySQL account holders to then change their MySQL account passwords.

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.