Re: [Tutor] sqlite search

2013-01-28 Thread Prasad, Ramit
Alan Gauld wrote: > > On 18/01/13 18:11, Roger wrote: > > > At the moment this works to search for everything beginning with A > > sql = "SELECT * FROM plants WHERE genus LIKE 'A%'"; > > cursor.execute(sql); > > SQLlite supports a form of format string where you put in some magic > charactrs the

Re: [Tutor] sqlite search

2013-01-27 Thread ALAN GAULD
>> file:///home/alang/Documents/HomePage/tutor/tutdbms.htm > >You might have better luck using this link: >http://www.alan-g.me.uk/tutor/tutdbms.htm > > > > >Oops, thanks for spotting that!  I keep two copies of the site open in separate browser tabs and mistakenly used the local  file version

Re: [Tutor] sqlite search

2013-01-27 Thread Oscar Benjamin
On 27 January 2013 18:21, Alan Gauld wrote: > On 18/01/13 18:11, Roger wrote: > >> At the moment this works to search for everything beginning with A >> sql = "SELECT * FROM plants WHERE genus LIKE 'A%'"; >> cursor.execute(sql); > > > SQLlite supports a form of format string where you put in some

Re: [Tutor] sqlite search

2013-01-27 Thread Alan Gauld
On 18/01/13 18:11, Roger wrote: At the moment this works to search for everything beginning with A sql = "SELECT * FROM plants WHERE genus LIKE 'A%'"; cursor.execute(sql); SQLlite supports a form of format string where you put in some magic charactrs then provide arguments which SQLLite will

[Tutor] sqlite search

2013-01-25 Thread Roger
Hello, I am very new to python. Wrote a small program to use on my android phone using pickle/shelve to access data. That worked fine but i realised it would be better to use sqlite as a database to more easily modify the data. I havent got a clue about sqlite, have a book but cant find the ans

Re: [Tutor] sqlite search syntax

2013-01-18 Thread Prasad, Ramit
Roger Shaw wrote: > > Hello, > I am very new to python. > > Wrote a small program to use on my android phone using pickle/shelve to > access data. > > That worked fine but i realised it would be better to use sqlite as a > database to more easily modify the data. > > I havent got a clue about

[Tutor] sqlite search syntax

2013-01-18 Thread Roger Shaw
Hello, I am very new to python. Wrote a small program to use on my android phone using pickle/shelve to access data. That worked fine but i realised it would be better to use sqlite as a database to more easily modify the data. I havent got a clue about sqlite, have a book but cant find