Abfrage SQL db
Verfasst: Samstag 24. August 2019, 14:16
Hallo, ich habe eine frage bzgl. meiner DB Abfrage.
Ich check das nicht. Und finde hierzu nichts gescheites, evtl. weil ich auch net weis was ich suchen muss.
Danke schonmal für Hilfe.
MFG Jörg
Ausgabe schaut wie folgt aus:cursor = connection.cursor()
cursor.execute("SELECT links FROM phpdb.linkliste")
result = cursor.fetchall()
for x in result:
print (x)
y= x[5:]
print (y)
Warum kommtconnect successful!!
{u'links': 'http://www.boerse-online.de'}
Traceback (most recent call last):
File "scrapper.py", line 18, in <module>
y= x[5:]
und nicht nur der Datenbank Eintrag?u'links':
Ich check das nicht. Und finde hierzu nichts gescheites, evtl. weil ich auch net weis was ich suchen muss.
Danke schonmal für Hilfe.
MFG Jörg