Python Forum
help, search in python mysql
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help, search in python mysql
#4
(Dec-15-2016, 10:53 PM)Larz60+ Wrote: What error do you get?

what is the actual code that you are using?
The indentation on the snippet you show is wrng, and would give an error.

What is the exact traceback that you are getting? please post (verbatim)


The syntax to select a particular field for a table would be
SELECT field FROM table WHERE otherfield = 'whatever';
Also you are not showing enough code, setting a string named sql is part of it,
but that string must be executed with the cursor
wonderful!!
works!!
great!
Ok  i find value.
Now... if found value  ...
How check that the search give result?
Reply


Messages In This Thread
help, search in python mysql - by tarata - Dec-15-2016, 03:43 PM
RE: help, search in python mysql - by Larz60+ - Dec-15-2016, 07:44 PM
RE: help, search in python mysql - by Larz60+ - Dec-15-2016, 10:53 PM
RE: help, search in python mysql - by tarata - Dec-19-2016, 08:54 PM
RE: help, search in python mysql - by Larz60+ - Dec-19-2016, 09:10 PM
RE: help, search in python mysql - by tarata - Dec-19-2016, 10:13 PM
RE: help, search in python mysql - by nilamo - Dec-19-2016, 10:37 PM
RE: help, search in python mysql - by tarata - Dec-19-2016, 11:06 PM
RE: help, search in python mysql - by Larz60+ - Dec-19-2016, 11:16 PM
RE: help, search in python mysql - by tarata - Dec-19-2016, 11:17 PM
RE: help, search in python mysql - by tarata - Dec-20-2016, 08:19 AM
RE: help, search in python mysql - by tarata - Dec-20-2016, 03:48 PM
RE: help, search in python mysql - by Larz60+ - Dec-20-2016, 04:35 PM
RE: help, search in python mysql - by tarata - Dec-21-2016, 07:33 AM
RE: help, search in python mysql - by Larz60+ - Dec-21-2016, 01:21 PM
RE: help, search in python mysql - by tarata - Dec-23-2016, 02:38 PM
RE: help, search in python mysql - by Larz60+ - Dec-24-2016, 12:47 AM
RE: help, search in python mysql - by tarata - Dec-24-2016, 12:25 PM
RE: help, search in python mysql - by Larz60+ - Dec-24-2016, 12:45 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Mysql and mysql.connector error lostintime 2 723 Oct-03-2023, 10:25 PM
Last Post: lostintime
  Mysql error message: Lost connection to MySQL server during query tomtom 6 16,236 Feb-09-2022, 09:55 AM
Last Post: ibreeden
Question Debian 11 Bullseye | Python 3.9.x | pip install mysql-connector-python-rf problems BrandonKastning 4 6,747 Feb-05-2022, 08:25 PM
Last Post: BrandonKastning
  Python and MySql ogautier 8 3,416 May-20-2021, 11:10 PM
Last Post: Pedroski55
  Python and MySQL Pedroski55 5 3,269 Mar-23-2021, 06:40 AM
Last Post: ndc85430
  Python MySQL ogautier 0 2,127 Sep-03-2020, 03:54 PM
Last Post: ogautier
  Insert into mysql through python LaKhWaN 0 1,959 Aug-26-2020, 04:54 AM
Last Post: LaKhWaN
  Python mysql query help please tduckman 4 4,350 Mar-13-2020, 03:42 PM
Last Post: Marbelous
  mysql db connection using python sunstar20 13 12,085 Aug-04-2018, 09:08 AM
Last Post: vishalhule
  A combination of Python and MySql xgrzeniu 2 4,016 Mar-28-2018, 06:50 AM
Last Post: xgrzeniu

Forum Jump:

User Panel Messages

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