Create Database in MySQL

MySQL CREATE DATABASE To create a MySQL database, open the MySQL Command Line Client. The MySQL Command Line Client will appear with a mysql> prompt. Here you will have to write the already set password. Now the next step is the creation of the database. Syntax: CREATE DATABASE name; Parameters: name: It is used to … Read more

Data Types in MySQL

MySQL Data Types A data type represents the type of data that can be stored and processed. Some common data types include integer, floating point, boolean, etc. A data type also specifies the type of operations that can be performed on that type. MySQL supports a lot of the standard data types of SQL. These … Read more

History of MySQL

MySQL was created by a Swedish company, MySQL AB, which was founded in 1995. The company was later acquired by Sun Microsystems in the year 2008 for about $1 billion. The project of MySQL began in the year 1979 in the form of UNIREG which was an in-house database tool developed to manage databases. UNIREG … Read more

Backbone.JS View Template()

The Backbone.JS View Template() method creates reusable copies of markup. It also provides access to the instance data, while rendering the view. Syntax: View.Template (data) Parameters: data: This parameter is used to specify the data to be accessed while rendering. Example: <!DOCTYPE html> <html> <head> <title>Example</title> <script src="https://code.jquery.com/jquery-2.1.3.min.js" type="text/javascript"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.2/underscore-min.js" type="text/javascript"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.1.2/backbone-min.js" type="text/javascript"></script> … Read more

Backbone.JS View $(jQuery)

The Backbone.JS View $(jQuery) method is used as a selector. It contains $ function and runs queries within the view’s element. Syntax: View.$(selector) Parameters: selector: This parameter is used to specify the type of selector such as, id or class. Example: <!DOCTYPE html> <html> <head> <title>Example</title> <script src="https://code.jquery.com/jquery-2.1.3.min.js" type="text/javascript"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.2/underscore-min.js" type="text/javascript"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.1.2/backbone-min.js" type="text/javascript"></script> … Read more

Backbone.JS FindWhere() collection

The Backbone.JS FindWhere() collection method is used to get the first model that matches the specified attribute in the collection. Syntax: Collection.FindWhere ( attribute ) Parameters: attribute: This parameter is used to specify the attribute of a model in a collection. Example: <!DOCTYPE html> <html> <head> <title>Example</title> <script src="https://code.jquery.com/jquery-2.1.3.min.js" type="text/javascript"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.2/underscore-min.js" type="text/javascript"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.1.2/backbone-min.js" … Read more

Backbone.JS Extend() collection

The Backbone.JS Extend() collection method extends the backbone’s collection class to create own collection. Syntax: Backbone.Collection.extend ( properties, classProperties ) Parameters: properties: This parameter is used to specify the instance properties of a collection. classProperties: This parameter is used to specify the class properties of a collection. Example: <!DOCTYPE html> <html> <head> <title>Example</title> <script src="https://code.jquery.com/jquery-2.1.3.min.js" … Read more