4_DB_development_method_l1_v1
Оценка 5

4_DB_development_method_l1_v1

Оценка 5
docx
09.05.2020
4_DB_development_method_l1_v1
4_DB_development_method_l1_v1.docx

SQL is a simple programming language that has few commands that anyone can learn. It stands for Structured Query Language - a structured query language that was designed to work with the database, namely, to receive / add / https://sql-language.ru/sqldatetype.html

change data, to be able to process large arrays of information and quickly obtain structured and grouped information. There are many variations of the SQL language, but they all have almost the same basic commands. There are also many DBMSs, but the main ones are: Microsoft Access, Microsoft SQL Server, MySQL, Oracle SQL, IBM DB2 SQL, PostgreSQL and Sybase Adaptive Server SQL. To work with SQL code, we need one of the above DBMS. For training, we will use the Microsoft Access database. SQL, like other programming languages, has its own commands (operators), with the help of which instructions are given for retrieving data. Appendix 2. • INT [(len)] is an integer with a length of 4 bytes, which is represented at the output as much as len in numbers; • SMALLINT [(len)] is an integer 2 bytes long, which is represented at the output maximum len digits; • FLOAT [(len, dec)] - the real number that is displayed when outputting len dec characters after decimal point; • CHAR (size) - a string of fixed-length characters of the size of characters; • VARCHAR (size) - a string of characters of variable length with a maximum size of up to size of characters; • BLOB (Binary Large OBject) - an array of arbitrary (binary) bytes (the maximum size depends on the implementation, usually it is 65535 bytes); this type of data can be used, for example, to store images; • DATE - astronomical date; • TIME - astronomical time. Character constants (type CHAR and VARCHAR) are written as sequences Characters enclosed in single apostrophes, such as "brass". Decimal constants (such as FLOAT) can be written in “scientific” notation as The sequence of the following components: • number sign; • decimal number with a dot; • the symbol "e"; • sign (“+” or “-”) of the exponent; • an integer playing the role of the exponent of 10. For example, the decimal number -0.123 can be written as -12.3e-2. The difference between the CHAR and VARCHAR data types is that for storage in a table

character strings of type CHAR use exactly size bytes (although the contents of the stored strings may be significantly shorter), while for VARCHAR strings, unallocated string characters (“empty”) bytes are not stored in the table. We emphasize that the len and dec values (unlike size) do not affect the storage size. data in the table, and only format the output of data from the table.


 

SQL is a simple programming language that has few commands that anyone can learn

SQL is a simple programming language that has few commands that anyone can learn
Скачать файл