Comprehensive SQL Syntax Guide: Oracle vs MySQL/OBMySQL
Table of Contents
Basic Query Statements
Data Manipulation Statements
Table Structure Operations
Index Operations
View Operations
Stored Procedures and Functions
Transaction Control
Permission Management
Data Type Differences
Common Function Comparisons
Basic Query Statements
SELECT Queries
Oracle
-- Basic query
SELECT col_a, col_b FROM tar ...
Posted on Tue, 01 Sep 2026 16:32:01 +0000 by ricoche
OceanBase Index Management and Access Path Optimization
Access paths determine how the database retrieves data from a table—typically via primary key scans or secondary indexes. The efficiency of a query hinges on selecting the optimal path, as full table scans scale linearly with data volume. When an index exists, it can drastically reduce I/O by limiting the scanned rows. However, if the optimizer ...
Posted on Mon, 31 Aug 2026 16:25:28 +0000 by sharey
OceanBase Query Hints, Outline Plan Binding, and SQL Plan Management
OceanBase uses a cost-based optimizer with hint syntax similar to Oracle. There are key operational details to note:
When executing hinted SQL via MySQL client, connect with -c to avoid client-side stripping of hint comments
Unrecognized server hints are silently ignored instead of throwing errors
Hints only modify optimizer plan generation lo ...
Posted on Sun, 31 May 2026 18:33:41 +0000 by homer.favenir
Optimizing SQL Performance in OceanBase Database
OceanBase's architectural foundation differs significantly from traditional relational databases, which directly impacts SQL performance tuning strategies.
Architectural Distinctions
LSM-Tree Storage Engine
Data is organized into static components (SSTables) and dynamic components (MemTables). Performance for many query improves after a major c ...
Posted on Wed, 20 May 2026 08:13:05 +0000 by bhavesh