Coursera课程Python for everyone:Quiz: Many-to-Many Relationships and Python

Many-to-Many Relationships and Python

9 试题

We add a table with two foreign keys

We add 10 foreign keys to each table with names like artict_id_1, artist_id2, etc.

We use the ARRAY column type in both of the tables

We use a BLOB column in both tables

A function

A Python dictionary

A method within a class

A file handle

run()

socket()

send()

execute()

It is a syntax error

It is a placeholder for the contents of the "org" variable

It allows more than one boolean operation in the WHERE clause

It is a search wildcard

An empty list

-1

None

An empty dictionary

It only retrieves the first 10 rows from the table

It only sorts on the first 10 characters of the column

It reverses the sort order if there are more than 10 rows

It avoids reading data from any table other than Counts

It allows embedded JavaScript to be executed

It allows multiple SQL statements separated by semicolons

It allows database tables to be created

It allows embeded Python to be executed

It makes sure that if a particular title is already in the table, there are no duplicate rows inserted

It ignores errors in the SQL syntax for the statement

It updates the created_at value if the title already exists in the table

It ignores any foreign key constraint errors

A UNIQUE constraint

A NOT NULL constraint

A PRIMARY KEY indication

An AUTOINCREMENT indication

你可能感兴趣的:(Python)