Searched refs:cur (Results 1 - 25 of 746) sorted by relevance

1234567891011>>

/external/python/cpython2/Doc/includes/sqlite3/
H A Dexecsql_printall_1.py7 cur = con.cursor() variable
10 cur.execute("select * from people order by age")
13 print cur.fetchall()
H A Dexecute_3.py5 cur = con.cursor() variable
10 cur.execute("select name_last, age from people where name_last=:who and age=:age",
12 print cur.fetchone()
H A Dexecutescript.py4 cur = con.cursor() variable
5 cur.executescript("""
H A Dcollation_reverse.py9 cur = con.cursor() variable
10 cur.execute("create table test(x)")
11 cur.executemany("insert into test(x) values (?)", [("a",), ("b",)])
12 cur.execute("select x from test order by x collate reverse")
13 for row in cur:
H A Dcreatedb.py13 cur = con.cursor() variable
14 cur.execute("""
22 cur.execute("insert into people (name_last, age) values ('Yeltsin', 72)")
23 cur.execute("insert into people (name_last, age) values ('Putin', 51)")
27 cur.close()
H A Dexecsql_fetchonerow.py5 cur = con.cursor() variable
10 cur.execute(SELECT)
11 for (name_last, age) in cur:
15 cur.execute(SELECT)
16 for row in cur:
H A Dexecute_1.py4 cur = con.cursor() variable
5 cur.execute("create table people (name_last, age)")
11 cur.execute("insert into people values (?, ?)", (who, age))
14 cur.execute("select * from people where name_last=:who and age=:age", {"who": who, "age": age})
16 print cur.fetchone()
H A Dexecutemany_2.py9 cur = con.cursor() variable
10 cur.execute("create table characters(c)")
12 cur.executemany("insert into characters(c) values (?)", char_generator())
14 cur.execute("select c from characters")
15 print cur.fetchall()
H A Dmysumaggr.py15 cur = con.cursor() variable
16 cur.execute("create table test(i)")
17 cur.execute("insert into test(i) values (1)")
18 cur.execute("insert into test(i) values (2)")
19 cur.execute("select mysum(i) from test")
20 print cur.fetchone()[0]
H A Dtext_factory.py4 cur = con.cursor() variable
9 cur.execute("select ?", (AUSTRIA,))
10 row = cur.fetchone()
15 cur.execute("select ?", (AUSTRIA,))
16 row = cur.fetchone()
26 cur.execute("select ?", ("this is latin1 and would normally create errors" +
28 row = cur.fetchone()
34 cur.execute("select ?", (AUSTRIA,))
35 row = cur.fetchone()
38 cur
[all...]
H A Dpysqlite_datetime.py5 cur = con.cursor() variable
6 cur.execute("create table test(d date, ts timestamp)")
11 cur.execute("insert into test(d, ts) values (?, ?)", (today, now))
12 cur.execute("select d, ts from test")
13 row = cur.fetchone()
17 cur.execute('select current_date as "d [date]", current_timestamp as "ts [timestamp]"')
18 row = cur.fetchone()
/external/python/cpython3/Doc/includes/sqlite3/
H A Dexecsql_printall_1.py7 cur = con.cursor() variable
10 cur.execute("select * from people order by age")
13 print(cur.fetchall())
H A Dexecute_3.py5 cur = con.cursor() variable
10 cur.execute("select name_last, age from people where name_last=:who and age=:age",
12 print(cur.fetchone())
H A Dexecutescript.py4 cur = con.cursor() variable
5 cur.executescript("""
H A Dcollation_reverse.py14 cur = con.cursor() variable
15 cur.execute("create table test(x)")
16 cur.executemany("insert into test(x) values (?)", [("a",), ("b",)])
17 cur.execute("select x from test order by x collate reverse")
18 for row in cur:
H A Dcreatedb.py13 cur = con.cursor() variable
14 cur.execute("""
22 cur.execute("insert into people (name_last, age) values ('Yeltsin', 72)")
23 cur.execute("insert into people (name_last, age) values ('Putin', 51)")
27 cur.close()
H A Dexecsql_fetchonerow.py5 cur = con.cursor() variable
10 cur.execute(SELECT)
11 for (name_last, age) in cur:
15 cur.execute(SELECT)
16 for row in cur:
H A Dexecute_1.py4 cur = con.cursor() variable
5 cur.execute("create table people (name_last, age)")
11 cur.execute("insert into people values (?, ?)", (who, age))
14 cur.execute("select * from people where name_last=:who and age=:age", {"who": who, "age": age})
16 print(cur.fetchone())
H A Dexecutemany_2.py9 cur = con.cursor() variable
10 cur.execute("create table characters(c)")
12 cur.executemany("insert into characters(c) values (?)", char_generator())
14 cur.execute("select c from characters")
15 print(cur.fetchall())
H A Dmysumaggr.py15 cur = con.cursor() variable
16 cur.execute("create table test(i)")
17 cur.execute("insert into test(i) values (1)")
18 cur.execute("insert into test(i) values (2)")
19 cur.execute("select mysum(i) from test")
20 print(cur.fetchone()[0])
H A Dpysqlite_datetime.py5 cur = con.cursor() variable
6 cur.execute("create table test(d date, ts timestamp)")
11 cur.execute("insert into test(d, ts) values (?, ?)", (today, now))
12 cur.execute("select d, ts from test")
13 row = cur.fetchone()
17 cur.execute('select current_date as "d [date]", current_timestamp as "ts [timestamp]"')
18 row = cur.fetchone()
/external/libxml2/example/
H A Dgjobread.c46 parsePerson(xmlDocPtr doc, xmlNsPtr ns, xmlNodePtr cur) { argument
62 cur = cur->xmlChildrenNode;
63 while (cur != NULL) {
64 if ((!xmlStrcmp(cur->name, (const xmlChar *)"Person")) &&
65 (cur->ns == ns))
66 ret->name = xmlNodeListGetString(doc, cur->xmlChildrenNode, 1);
67 if ((!xmlStrcmp(cur->name, (const xmlChar *)"Email")) &&
68 (cur->ns == ns))
69 ret->email = xmlNodeListGetString(doc, cur
80 printPerson(personPtr cur) argument
109 parseJob(xmlDocPtr doc, xmlNsPtr ns, xmlNodePtr cur) argument
155 printJob(jobPtr cur) argument
185 xmlNodePtr cur; local
278 handleGjob(gJobPtr cur) argument
290 gJobPtr cur; local
[all...]
/external/libxml2/doc/tutorial/
H A Dincludekeyword.c9 parseStory (xmlDocPtr doc, xmlNodePtr cur) {
12 cur = cur->xmlChildrenNode;
13 while (cur != NULL) {
14 if ((!xmlStrcmp(cur->name, (const xmlChar *)"keyword"))) {
15 key = xmlNodeListGetString(doc, cur->xmlChildrenNode, 1);
19 cur = cur->next;
28 xmlNodePtr cur;
37 cur
[all...]
/external/lzma/C/
H A DLzHash.h15 #define HASH2_CALC hv = cur[0] | ((UInt32)cur[1] << 8);
18 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \
20 hv = (temp ^ ((UInt32)cur[2] << 8)) & p->hashMask; }
23 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \
25 temp ^= ((UInt32)cur[2] << 8); \
27 hv = (temp ^ (p->crc[cur[3]] << 5)) & p->hashMask; }
30 UInt32 temp = p->crc[cur[
[all...]
/external/libcap-ng/libcap-ng-0.7/utils/
H A Dproc-llist.c32 l->cur = NULL;
61 l->cur->next = newnode;
64 l->cur = newnode;
71 register lnode* cur; local
73 cur = l->head;
74 while (cur) {
75 nextnode=cur->next;
76 free(cur->cmd);
77 free(cur->capabilities);
78 free(cur
89 register lnode* cur; local
[all...]

Completed in 1194 milliseconds

1234567891011>>