SQL Python Flashcards

1
Q

What parameter is used in the mysql.connector.connect function to define the network location of the database server being accessed in the python program

A

host=

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What mysql.connector method is used to make changes to a database permanent?

A

commit()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What SQL command is used to link two tables together during an SQL select statement?

A

Join

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What methods is used to used to limit the number records returned from an SQL query?

A

Use the LIMIT SQL clause in the query

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What python command is required at the top of a python program to allow the use of the mysql connector?

A

import mysql.connector

How well did you know this?
1
Not at all
2
3
4
5
Perfectly