Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

base de dados online #4361

Closed
Mariarambo opened this issue Jan 21, 2025 · 0 comments
Closed

base de dados online #4361

Mariarambo opened this issue Jan 21, 2025 · 0 comments

Comments

@Mariarambo
Copy link

import MYSQLdb

db=MYSQLdb.connet(host=" 212.1.211.51",user="U948493795_rootx",passwd=

cursor = db.cursor()
cursor.execute('SELECT*FROM.tblbooks')
numrows=int(cursor.rowcount)
linhas=cursor.fetchall)

print("Numero total de registros encontrados:", numrows)
print("\nMostrando resultdos...")

for linha in linhas:
print("-" linha[0])
print('-' linha[1])

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Jan 21, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot removed the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants