Hi All,
I have an iPhone Core Data app with a pre-populated sqlite "baseline" database. Can I add a second smaller sqlite database with the same tables as my pre-populated "baseline" database but with additional / complementary data such that Core Data will happily union the data from both databases and, ultimately, present to me as if ...
Hello,
How can i update image (blob) field in sqlite.
here is the code which was i using.
UIImage *imgSign = [[UIImage alloc] initWithData:[self StringToData:objSql.signature]];
imgsignature.image = imgSign;
Imagedata = UIImageJPEGRepresentation(imgSign, 1.0);
empId = createById;
signatureImage = Imagedata;
-(void)UpdateSignature
{
...
I am working on an iPhone app using a SQLite db. I have some French characters that are not rendering properly in the app - they are being displayed as squares.
The character set client is: utf8. Is there an easy fix for this?
...
I have three tables (these are the relevant columns):
Table1
bookingid, person, role
Table2
bookingid, projectid
Table3
projectid, project, numberofrole1, numberofrole2
Table1.role can take two values: "role1" or "role2".
What I want to do is to show which projects don't have the correct number of roles in Table1. The number of r...
I have a C# application that I am attempting to check my sqlite db if a filename already exists in the FileName column, if it DOESN'T exist, execute some code.. Here is what I am working with. To clarify - This code doesnt work.. it says I cannot convert insertCommand.ExecuteNonQuery to a string. I need to query the table and if the file...
Hi, I am attempting to get a directory (which is ever-growing) full of .txt comma delimited files to import into my SQLite db. I now have all of the files importing ok, however I need to have some way of excluding the files that have been previously added to db. I have a column in the db called FileName where the name and extension are s...
I have three tables with a common key field, and I need to join them on this key. Given SQLite doesn't have full outer or right joins, I've used the full outer join without right join technique on Wikipedia with much success.
But I'm curious, how would one use this technique to join three tables by a common key? What are the efficiency ...
I understand that SQLite stores dates as long integers. When I read rows using the standard method (i.e. using the query() method that reads data into a cursor), the result is a date string that includes the time:
2010-05-25 19:52:04
If I want a different format, I have to parse the string back into a date - possible, but a bit backwa...
Guys, I'm struggling. I have query against my db that returns a single column of data and I need to set it as List. Here is what I am working with and I am getting an error about converting void to string.
public static void GetImportedFileList()
{
using (SQLiteConnection connect = new SQLiteConnection(@"Data Source=C:\Docum...
Hi All,
i am pretty new in iphone development.
I have created one function to insert data into database. The code compiles successfully. But when comes to statement
sqlite3_bind_text(sqlStatement, 1, [s UTF8String], -1, SQLITE_TRANSIENT);
it does not do anything but hangs AND in warning it says "passing Argument 1 of "sqlite3_bind_text"...
Hi,
dr looks like it is populated but I get a nullreferenceexeception when I try to bind to the gridview
EDIT
The following code (except the GridView is a dataGridView) in a c# application works, why is it nullreference in ASP.NET?
EDIT here is the c# app
SQLiteConnection cnn = new SQLiteConnection("Data Source=c:\\log.db");
...
I am converting my php code for MySQL to SQLite. I am new to SQLite. Kindly help me convert this portion.
if (mysqli_fetch_row($result)== NULL){
echo "Inserting new record <br />";
$stmt = mysqli_prepare($con,"INSERT INTO received_queries VALUES (?,?,?,?)");
mysqli_stmt_b...
I am working on the design and implementation of an iPhone application ( a newbie, but I am getting the hang of it) where a person can download specific contact information about teachers based on their majors.
The information is currently on different edu websites. And I have exported the information into SQLite databases. Is it possib...
I have django application, running under lighttpd via fastcgi. FCGI running script looks like:
python manage.py runfcgi socket=<path>/main.socket
method=prefork \
pidfile=<path>/server.pid \ ...
I have two tables in sqlite:
CREATE TABLE fruit ('fid' integer, 'name' text);
CREATE TABLE basket ('fid1' integer, 'fid2' integer, 'c1' integer, 'c2' integer);
basket is supposed to have count c1 of fruit fid1 and c2 of fruit fid2
I created a view fruitbasket;
create view fruitbasket as select * from basket inner join fruit a on a.f...
Hi, Experts:
Can you please give some suggestions on sqlite using on the iPhone?
Within my application, I use a sqlite DB to store all local data. Two methods can be used to retrieve those data during running time.
1, Load all the data into memory at initialization stage. (More memory used, less DB open/close operation needed)
2, Read...
Are there any good SQLite profilers? I need something similar to what JetProfiler offers for MySQL. I've found a 3-year-old blog post - any other ideas?
...
The error-Warning: sqlite_query() [function.sqlite-query]: attempt to write a readonly database is coming whenever i try to insert values into a sqllite 1.1 database thru php program.
php version is 5.2.
...
I realise it is possible to create a crosstab within sqlite, but is it possible to dynamically determine the relevant categories/columns at runtime rather than hardcoding them?
Given the following example, it can get rather tedious ...
SELECT
shop_id,
sum(CASE WHEN product = 'Fiesta' THEN units END) as Fiesta,
sum(CASE WHEN product = ...
I am in the planning stages of rewriting an Access db I wrote several years ago in a full fledged program. I have very slight experience coding, but not enough to call myself a programmer by far. I'll definitely be learning as I go, so I'd like to keep everything as simple as possible. I've decided on Python and SQLite for my program,...