Jump to content

Recommended Posts

Posted

SQL - Accessing The Databases!

 

SQL-Injection-Attack.jpg

 


 

What is SQL;

 

  • SQL stands for Structured Query Language.
  • SQL lets you access and manipulate databases.
  • SQL is an ANSI (American National Standards Institute) standard.

 


 

What Can SQL do?

 

  • SQL can execute queries against a database.
  • SQL can retrieve data from a database.
  • SQL can insert records in a database.
  • SQL can update records in a database.
  • SQL can delete records from a database.
  • SQL can create new databases.
  • SQL can create new tables in a database.
  • SQL can create stored procedures in a database.
  • SQL can create views in a database.
  • SQL can set permissions on tables, procedures, and views.

 


 

SQL is a Standard - BUT....

 

Although SQL is an ANSI (American National Standards Institute) standard, there are many different versions of the SQL language.

 

However, to be compliant with the ANSI standard, they all support at least the major commands (such as SELECT, UPDATE, DELETE, INSERT, WHERE) in a similar manner.

 

Note: Most of the SQL database programs also have their own proprietary extensions in addition to the SQL standard!

 


 

SQL Statements.

 

Most of the actions you need to perform on a database are done with SQL statements.

 

The following SQL statement will select all the records in the "Persons" table:

 

SELECT * FROM Persons

 


 

SQL DML and DDL.

 

SQL can be divided into two parts: The Data Manipulation Language (DML) and the Data Definition Language (DDL).

 

The query and update commands form the DML part of SQL:

 

  • SELECT - extracts data from a database
  • UPDATE - updates data in a database
  • DELETE - deletes data from a database
  • INSERT INTO - inserts new data into a database

 

The DDL part of SQL permits database tables to be created or deleted. It also defines indexes (keys), specifies links between tables, and imposes constraints between tables. The most important DDL statements in SQL are:

 

  • CREATE DATABASE - creates a new database
  • ALTER DATABASE - modifies a database
  • CREATE TABLE - creates a new table
  • ALTER TABLE - modifies a table
  • DROP TABLE - deletes a table
  • CREATE INDEX - creates an index (search key)
  • DROP INDEX - deletes an index

 


 

The SQL SELECT Statement.

 

The SELECT statement is used to select data from a database.

 

The result is stored in a result table, called the result-set.

 

SQL SELECT Syntax

 

SELECT column_name(s)
FROM table_name

 

and

 

SELECT * FROM table_name

 

lamp.gifNote: SQL is not case sensitive. SELECT is the same as select.

 

The INSERT INTO Statement

 

SQL INSERT INTO Syntax

 

It is possible to write the INSERT INTO statement in two forms.

 

The first form doesn't specify the column names where the data will be inserted, only their values:

 

INSERT INTO table_name
VALUES (value1, value2, value3,...)

 

The UPDATE Statement

 

The UPDATE statement is used to update existing records in a table.

 

SQL UPDATE Syntax

 

UPDATE table_name
SET column1=value, column2=value2,...
WHERE some_column=some_value

 

Note: Notice the WHERE clause in the UPDATE syntax. The WHERE clause specifies which record or records that should be updated. If you omit the WHERE clause, all records will be updated!

 

The DELETE Statement

 

The DELETE statement is used to delete rows in a table.

 

SQL DELETE Syntax

 

DELETE FROM table_name
WHERE some_column=some_value

 

Note: Notice the WHERE clause in the DELETE syntax. The WHERE clause specifies which record or records that should be deleted. If you omit the WHERE clause, all records will be deleted!

 

SQL Tutorial with Video Version:

 

 


 

Have fun, and wish you good practice!

 

 

  • 2 weeks later...
  • 1 month later...
  • 2 weeks later...
Posted

Thanks! I would be greatful, if this share be stickied.

its not really needed, thx a lot for that share

  • 4 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • TG Support: https://t.me/buyingproxysup | Channel: https://t.me/buyingproxycom Discord support: #buyingproxy | Server: Join the BuyingProxy Discord Server! Create your free account here  
    • I've purchased the Samurai interface. Everything went smoothly, and the interface is excellent. Highly recommended!
    • For quick reference, I’ve been using the D12 dice roller when testing dice mechanics—clean design and instant results help a lot. It might give you a solid visual template to work from as you build your own games.
    • 🪙 GoldRush — High Five x20 🪙   A fresh High Five server focused on active progression, fair competition, and a healthy player-driven economy.   GoldRush is built for players who want a fresh spin on our beloved game that is connected to today's world via Web3 marketplace.    🏅 Gold Bar & Marketplace • Gold Bars are part of the server's custom economy — they can be used in Marketplace or Cosmetics shop. • Tokens are optional and used only for server Marketplace features.   ⚙️ Server Rates • EXP: 20x • SP: 20x • Adena: 10x • Normal Drop Chance: 8x • Spoil Chance: 12x • Raid Drop Chance: 3x • Quest Item Drop Amount: 5x • Quest EXP/SP Reward: 10x • Quest Adena Reward: 5x   ✨ Enchant Rates • Max Enchant: Weapons +16 / Armors +12 • +0 to +3 armor / weapon = 100% safe • +0 to +4 full body armor = 100% safe • +4 to +6 = 66% • +7 to +9 = 60% • +10 to +12 = 54% • +13 to +14 = 48% • +15 to +16 = 42%   🛒 Alt+B Services GoldRush includes useful Alt+B services: • GM Shop up to Dynasty • Buffer 1h • Teleports • Drop Search • Rankings   🎒 Auto-Loot • Normal mob drops: auto-loot • Adena: auto-loot • Raid drops: stay on the ground • Herbs: stay on the ground   🧙 Class Progression • 1st and 2nd professions are free with shadow weapon reward. • 3rd profession: 5kk • Auto Learn Skills • Subclass - No Quest • Noblesse - Full Quest     ⚔️ Olympiad • Hero period: 1 week • Olympiad time: 18:00–00:00 server time • Match duration: 5 minutes • Max enchant in Olympiad: +6   🏰 Sieges Castle sieges take place on Sundays at 16:00 and 20:00 GMT+3. The first siege will happen 2 weeks after launch.   🐉 Grand Boss Respawn Queen Ant: 24h + 2h random Core: 30h + 2h random Orfen: 48h + 2h random Baium: 120h + 3h random Antharas: 120h + 24h random Valakas: 120h + 24h random Beleth: 120h + 24h random   ⚔️ Fair Play Bots are strictly forbidden and will result in a ban without warning. Dualbox is limited to 1 box. GoldRush is built around a healthy player-to-player economy. Website : https://www.goldrushpvp.xyz/ Discord : https://discord.com/invite/v3zRZVV6ka Guide of how to make an account on our web3 server!  
    • Patch notes of update v1.0 is done regarding some feedbacks. Added Special Buffs category to the buffer. Queen Cat, Seraphim and Dwarf equipment buffs are now available. Special buffs last 1 hour and can be saved in schemes. Players can now Shift+Click monsters to check drops and spoil directly in-game.
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..