answersLogoWhite

0

MySQL

MySQL is a Relational Database Management System. It was first released in 1995 and is most commonly used with the PHP programming language. MySQL is open source and 100% free to use.

526 Questions

What is the purpose of normalisation?

If you are referring to normalization of floating point numbers, it is to maintain the most precision of the number possible. Leading zeros in floating point representation is lost precision, thus normalization removes the leading zeros by shifting left and adjusting the exponent. If the calculation was done in a hidden extended precision register (like IEEE 80-bit format) extra precision bits may be shifted in to the LSBs before restoring the result to a standard single or double precision register, reducing loss of precision.

Is SQL and MySQL the same?

No, SQL and MySQL are not the same. SQL (Structured Query Language) is a standardized programming language used for managing and manipulating relational databases. MySQL, on the other hand, is an open-source relational database management system (RDBMS) that uses SQL as its query language. In essence, SQL is the language, while MySQL is a specific implementation of a database system that utilizes that language.

What is the software MySQL used for?

MySQL is an open source database used by businesses to help manage their websites and other areas of their business involving high volumes of data. MySQL offers users training, certification, consulting and support.

Comparing a field from a table with a field from a different table and using PHP and MySQL?

That will depend on the relationship between the two tables. Assuming it's a simple link between the two tables, then it can be done pretty easily.

For example, take two tables, "nuts" and "bolts". Perhaps you would want to compare the price per quantity of each of those, and that value is stored in the table. You could do it this way:

...

$query = mysql_query("SELECT nuts.price AS nutprice, bolts.price as boltprice FROM nuts JOIN bolts ON nuts.quantity = bolts.quantity");

while( $data = mysql_fetch_array($query)){

do_comparison($data['nutprice'], $data['boltprice']);

}

...

What are the advantages and disadvantages of indexes in oracle?

The advantages of indexes in Oracle are that it is faster at accessing rows and is useful. The disadvantages are that the table used is small and an index must be used in order to access data.

How are locking techniques used for concurrency control?

Concurrency means use of database by many users at the same time.Concurrency control techniques (Different techniques) are used control multiple transactions interfere each other to produce wrong results.

therefore one of the main techniques used to control concurrent execution of transaction is based on the concept of locking of data item.

A lock is a variable associated with a data item in the database and describes the status of that item with respect to possible operation that can be applied to that item.

Generally there is a one lock for each data item in the database.

What thoughts trigger depersonalization?

Depersonalization can be triggered by feelings of anxiety, stress, or overwhelming emotions, leading individuals to feel detached from themselves or their surroundings. Thoughts of inadequacy, fear of losing control, or an intense focus on self-awareness can also contribute to this sensation. Additionally, traumatic experiences or significant life changes may provoke feelings of unreality, causing a disconnect from one’s identity or environment.

What is an external constraint?

An external constraint is something outside a business that stops the business achieving it's aims and objectives. For example, changing consumer's tastes.

How do you convert xlsx to xls using php?

since XLS and XLSX are proprietary formats of Microsoft products, I'm not sure there is a (free) PHP way to do so. you can export your data in CSV, which is easily opened in Microsoft Excel or OpenOffice Calc

What services does MYSQL Web Hosting provide?

I found this website that provided me the best services for hosting websites and blogs online in 2021, you can purchase domain names through this website as well and easy to navigate highly www. tiny. cc/Besthosting , when using the link just remove the space between the stop and tiny.... hope I answered your question,

www. tiny.cc/Besthosting

Who makes management software for a database?

The most popular open-source database that is currently available is mySql, made by the company of the same name. It is free to download so the therer is not cost involved and is used across the globe by numerous commercial companies.

What is a char?

A char is a time, a turn or an occasion, an odd job, or a woman employed to do housework.

How do you copy a database of mysql in wamp server from one computer to another?

You have several options:

* copy the database files from mysql/data/<database_name> to a new mysql Installation

* use mysqldump utility to export the data from your database and load it into the new mysql installation

* setup replication

How can you populate a Dropdown with an Array from a Database using PHP?

This can be done with any Database system as the clever part is within the PHP.

There are two ways of doing this. The first method is having each record as a new selection. The second is having one field of the selection.

I'm going to use 'DATABASE {' and '} DATABASE' in order to show you where to put your 'Database {' and your closing '}' for the query.

Each Record

Assuming that you have at least two fields. One called value one called text then the following would work. (If your value is always the same as the Text shown to the user then you can change the set of text to value)

Echo '<select name="myselect">';

#DATABASE {

$current_value = $DATABASE['value'];

$current_text = $DATABASE['text'];

$myarray[] = '<option value="' . $current_value . '">' . $current_text . '</option>'; #A*

} DATABASE

Foreach($myarray as $key => $value){

Echo $value;

}

Echo '</select>';

Of course in this method you do not require an array as such. Due to the fact that on line A* could echo the value there and then.

One Field

This would be used more in the cases in which the table is built for forms and works like a Content Management System (CMS).

Firstly set out your record contents as: (I'm assuming here that the field is called dropdown)

I am a value[nowtext]I am some text[nextopt]I am a second Value[nowtext]I am some more text

Now let me explain. If you split this up in to [nextopt] there are two options. If you then split each again by [nowtext] you'll find 2 in between the [nextopt].

In this case, the first item set is the value of the Dropdown. The second is then the text and is split using [nowtext].

There are two functions in PHP which will help us. The first is called explode(); and this works like myfeild.split(); in Javascript. The second is implode();. Explode() is making an array. Think of it as, Explode the information into smaller chunks. Implode is the opposite, this takes an Array and turns it in to a String. (I've added two links to W3schools for reference on these tags)

Fairly simple when you understand how they work. Here's an example:

Echo '<select name="myselect">';

#Database {

$current_dropdown = $DATABASE['dropdown'];

$dropdown_array_a = explode('[nextopt]',$current_dropdown); #Makes an array

Foreach($dropdown_array_a as $key => $value){ #Runs for each item in array and loads in the key and the value of the array.

$dropdown_array_b = explode('[nowtext]',$value

Echo '<option value="' . $dropdown_array_b[0] . '">' . $dropdown_array_b[1] . '</option>';

}

# } DATABASE

Echo '</select>';

That was two of the many ways to perform this task. A link to the reference of Explode, Implode, Arrays and Foreach has been added to the Question.

How do you run a MySQL query from PHP file?

Here is a simple script that you can do to run a MySQL query after you have set a database up.

<?php

// Database Settings

$db['hostname'] = "localhost";

$db['username'] = "<db username>";

$db['password'] = "<db password>";

$db['database'] = "<db name>";

// Connect to MySQL

$connect = mysql_connect($db['hostname'], $db['username'], $db['password']);

// Select Database

mysql_select_db($db['database'], $connect);

// Do MySQL Query

mysql_query("INSERT INTO table_name SET field_name = '1234567890'");

// Close MySQL

mysql_close($connect);

?>

Obviously you will need to use your own MySQL settings and database details, but this gives you a general overview of how you can do it.

What is unsigned in mysql?

In MySQL, "unsigned" is a data type. When we put an unsigned in a column, it says you can't put negative integers in there. With unsigned int, the maximum range is 4294967295. Note: Inserting a negative value will result in a MySQL error.

To learn more about data science please visit- Learnbay.co

How do you delete all table in a database?

Unless you want to drop (delete) the entire database, you will must delete tables individually.

To delete tables individually, execute the query "SHOW TABLES" in your database which will return a list of all table names. Iterate through that resultset and execute "DROP TABLE {$table_name}"

What are the types of end users?

There are two types of End user
1.Native User
2.Sophisticated User (Technical User)