RDBMS With MySQL-2 Write the syntax used to connect to MySQL server. To connect to the server, you will usually needto provide a MySQL user name when you invoke mysql and,most likely, a password. If the server runs on a machineother than the one where you log in, you will also needto specify a host name. Contact your administrator tofind out what connection parameters you should use toconnect (that is, what host, user name, and password touse). Once you know the proper parameters, you should beable to connect like this:.host and user represent the host name where your MySQLserver is running and the user name of your MySQLaccount. Substitute appropriate values for your setup.The ******** represents your password; enter it whenmysql displays the Enter password: prompt.If that works, you should see some introductoryinformation followed by a mysql> prompt:
2.Write about float and double data types. 1. FLOAT [(M,D)] [UNSIGNED] [ZEROFILL]: A small(single-precision) floating-point number. Allowablevalues are -3.402823466E+38 to -1.175494351E-38, 0, and1.175494351E-38 to 3.402823466E+38.These are thetheoretical limits, based on the IEEE standard. Theactual range might be slightly smaller depending on yourhardware or operating system.M is the total number of digits and D is the number ofdigits following the decimal point. If M and D areomitted, values are stored to the limits allowed by thehardware. A single-precision floating-point number isaccurate to approximately 7 decimal places.UNSIGNED, if specified, disallows negateve values.These are the theoretical limits, based on the IEEEstandard. The actual range might be slightly smallerdepending on your hardware or operating system.M is the total number of digits and D is the number ofdigits following the decimal point. If M and D areomitted, values are stored to the limits allowed by thehardware. A double-precision floating-point number isaccurate to approximately 15 decimal places.UNSIGNED, if specified, disallows negative values.DOUBLE [(M,D)] [UNSIGNED] [ZEROFILL]: A normal – size(double-precision) floating-point number. Allowablevalues are -1.7976931348623157E+308 to-2.2250738585072014E-308, 0, and 2.2250738585072014E-308
to 1.7976931348623157E+308.3.Write and explain the ALTER DATABASE Syntax. You can later an existing table with the ALTERTABLE command, which allows you to add, remove, or modifytable fields or indices without the need to re-create theentire tableThe action component here can be any of the keywords ADD,DROP, ALTER, or CHANGE, and is followed by a fielddefinition similar to that used by the CREATE TABLEcommand. This definition consists of the name of thefield to be modified and (depending on the operation) afield definition consisting of a new field name, type,and constraints.4.Discuss the syntax of Insert statement with a suitableexample.
Once a database and its tables have been created, thenext step is to enter data into them. This isaccomplished by means of the INSERT command, whose basicsyntax is given below:////////////////////////////////////////////////////////For full Version visithttp://smudeassignments.blogspot.com/This work is licensed under the Creative CommonsAttribution-NonCommercial-NoDerivs 3.0 Unported License.To view a copy of this license, visithttp://creativecommons.org/licenses/by-nc-nd/3.0/ or senda letter to Creative Commons, 444 Castro Street, Suite900, Mountain View, California, 94041, USA. ///////////////////////////////////////////////////////