Python Forum
Pyhton and SQL Lite3 Data Queries
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pyhton and SQL Lite3 Data Queries
#1
Guys, I am new to Python and would like to ask for assistance.
I am busy with a database using forms.
One of the things I have is a button on the form, basically giving me data in a table specified by a specific word.
The code for this is :
 cursor.execute("SELECT * FROM `stock` WHERE `stock_location` LIKE '%Not%'") 
Works fine, gives me the data I want, problem is I want another word inclujded in the data output.
I read online and tried all the examples, nothing works, either I get a blank sheet back or the same "single" specified word data as it normally will and or an error.
I tried the example code as I gave it here and added the AND and the OR many different ways but still no luck, please assist!!
Reply


Messages In This Thread
Pyhton and SQL Lite3 Data Queries - by compumarsh - Sep-20-2018, 02:07 PM
RE: Pyhton and SQL Lite3 Data Queries - by buran - Sep-20-2018, 03:24 PM
RE: Pyhton and SQL Lite3 Data Queries - by buran - Sep-20-2018, 03:40 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Vlookup function in Pyhton antozas 1 651 Oct-02-2023, 04:16 AM
Last Post: vikraman
  Too many queries? lorasf 6 992 Jul-04-2023, 04:27 AM
Last Post: lorasf
  Reading Multiple text Files in pyhton Fatim 1 1,941 Jun-25-2021, 01:37 PM
Last Post: deanhystad
  Text File Manipulation Queries? JustJeff 2 2,124 Apr-10-2021, 08:12 PM
Last Post: JustJeff
  Pyhton code help from head first with python Shaikat_99 3 3,177 Jun-07-2020, 09:12 AM
Last Post: snippsat
  start interactive pyhton shell with pre-loaded custom modules Viktor 2 2,213 Apr-09-2020, 08:25 AM
Last Post: Viktor
  PYHTON not opening files profficial 11 13,619 Feb-15-2020, 09:06 AM
Last Post: bharathendra
  Basic Pyhton for Rhino 6 question about variables SaeedSH 1 2,156 Jan-28-2020, 04:33 AM
Last Post: Larz60+
  Pyhton Coding Help Needed (very small error) friduk 2 2,460 Oct-23-2019, 08:41 AM
Last Post: Gribouillis
  2 queries how to use "row" zxcv 1 1,958 Oct-30-2018, 04:19 AM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020