Saturday , 30 May 2020
Stackode
Home > MySql

MySql

How to delete index in MySql

How to delete index in MySql, first you need to know the exact name of the INDEX (Unique key in this case) to delete or update it. INDEX names are usually same as column names. In case of more than one INDEX applied on a column, MySQL automatically suffixes numbering to the column names to create unique INDEX names. For ...

Read More »

Apa itu mysql.?

Apa itu mysql.? MySQL (bisa dibaca dengan mai-mai – es-es – ki-ki – el atau bisa juga mai-mai – se-se – kuel) kuel adalah suatu perangkat lunak database relasi (Relati Relational Relati onal Database Management System atau RDBMS), RDBMS seperti halnya ORACLE, Postgresql, MS SQL, dan sebagainya. Jangan disalah-artikan MySQL dengan SQL. SQL (singkatan dari Structured Query Language) Language sendiri ...

Read More »

Where Clause – SQL

Where Clause – SQL is used to specify a condition while fetching the data from single table or joining with multiple tables. If the given condition is satisfied then only it returns specific value from the table. You would use WHERE clause to filter the records and fetching only necessary records. The WHERE clause is not only used in SELECT ...

Read More »

ALTER TABLE Command – SQL

ALTER TABLE Command – SQL is used to add, delete or modify columns in an existing table. You would also use ALTER TABLE command to add and drop various constraints on a an existing table. Syntax: The basic syntax of ALTER TABLE to add a new column in an existing table is as follows: ALTER TABLE table_name ADD column_name datatype; ...

Read More »

MIN Function SQL

MIN Function SQL is used to find out the record with minimum value among a record set. To understand MIN function, consider an employee_tbl table, which is having the following records: SQL> SELECT * FROM employee_tbl; +------+------+------------+--------------------+ | id | name | work_date | daily_typing_pages | +------+------+------------+--------------------+ | 1 | John | 2007-01-24 | 250 | | 2 | Ram ...

Read More »

MySQL Database Server

MySQL Database Server – Software database mulai bermunculan seiring dengan bertambahnya kebutuan akan database server. Salah satu dari pendatang baru dalam dunia database ialah MySQL, sebuah server/klien database SQL yang berasal dari Skandinavia. MySQL terdiri atas server SQL, klien program untuk mengakses server, tools untuk administrasi, dan interface program untuk menulis program sendiri. Pengembangan MySQL dimulai pada tahun 1979 dengan ...

Read More »

AND and OR Conjunctive Operators – SQL

AND and OR Conjunctive Operators – SQL are used to combine multiple conditions to narrow data in an SQL statement. These two operators are called conjunctive operators. These operators provide a means to make multiple comparisons with different operators in the same SQL statement. The AND Operator: The AND operator allows the existence of multiple conditions in an SQL statement’s ...

Read More »

TRUNCATE TABLE Command – SQL

TRUNCATE TABLE Command – SQL – is used to delete complete data from an existing table. You can also use DROP TABLE command to delete complete table but it would remove complete table structure form the database and you would need to re-create this table once again if you wish you store some data. Syntax: The basic syntax of TRUNCATE ...

Read More »

AVG Function SQL

AVG Function SQL is used to find out the average of a field in various records. To understand AVG function, consider an employee_tbl table, which is having the following records: SQL> SELECT * FROM employee_tbl; +------+------+------------+--------------------+ | id | name | work_date | daily_typing_pages | +------+------+------------+--------------------+ | 1 | John | 2007-01-24 | 250 | | 2 | Ram | ...

Read More »

Overview – SQL

Overview – SQL tutorial gives unique learning on Structured Query Language and it helps to make practice on SQL commands which provides immediate results. SQL is a language of database, it includes database creation, deletion, fetching rows and modifying rows etc. SQL is an ANSI (American National Standards Institute) standard but there are many different versions of the SQL language. ...

Read More »