2.2.3 Flashcards
text file
a set of character values which are in a document line by line
how to add writing to a file?
.write()
how to close a file?
.close()
how to read everything on a file?
.read()
how to print one line at a time from a file?
.readline()
what are the different file modes?
-‘r’ (read only)
-‘w’ (write mode, all the current data is discarded)
-‘a’ (append mode, adds to the existing file)
what does SQL stand for?
Structured
Query
Language
what is SQL?
a language used to retrieve data from a database
describe SQL
it’s persistent, related and organised
record
all of the data about one item in a database
field
a characteristic of something stored in a database
how do you work SQL?
SELECT <fieldname>
FROM <tablename>
WHERE <condition></condition></tablename></fieldname>
what does * do in SQL?
all fields should be included
what does J% do in SQL?
all conditions beginning with J
what are the advantages of a subroutine?
-more efficient program
-improved reliability
-saves total programming time