-
MY PROJECTS
-
Recent Posts
- SQL.How can you compare two nullable values safely, and how does IS DISTINCT FROM differ from <>?
- SQL.How are NULL values ordered by ORDER BY, how do defaults differ between databases, and how can you control their placement?
- SQL.How does NULL propagate through arithmetic expressions, and how can COALESCE and NULLIF help handle missing values and division by zero?
- SQL.How does NULL affect join conditions, and why can filtering the right-hand table in WHERE remove unmatched rows from a LEFT JOIN?
- SQL.How do GROUP BY and DISTINCT treat NULL values, even though NULL = NULL evaluates to UNKNOWN?
- SQL.How do aggregate functions handle NULL, and what is the difference between COUNT(*), COUNT(column), and COUNT(DISTINCT column)?
- SQL.How does NULL affect IN and NOT IN, and why can NOT EXISTS be a safer choice when a subquery returns nullable values?
- SQL.How do WHERE, HAVING, and CHECK constraints treat conditions that evaluate to UNKNOWN?
- SQL.Why do column = NULL and column <> NULL not work as expected, and when should you use IS NULL and IS NOT NULL?
- SQL.What is SQL’s three-valued logic (TRUE, FALSE, UNKNOWN), and how do AND, OR, and NOT behave with UNKNOWN?
- ChromeDevTools.Watch all failed requests
- SQL.What are domain types (or constraints on data types), and how do they help enforce data correctness?
- SQL.How does SQL handle comparisons between different data types (for example, string vs number), and why is this dangerous?
- SQL.What is the difference between DATE, TIME, TIMESTAMP, and TIMESTAMPTZ, and which one should be used for business events?
- SQL.How do numeric types like INTEGER, BIGINT, DECIMAL, and FLOAT differ in terms of precision and use cases?
- SQL.What problems can arise from implicit type casting in SQL, and how can it affect indexes?
- SQL.How does NULL differ from 0, an empty string, or FALSE in SQL?
- SQL.What is the difference between CHAR, VARCHAR, and TEXT, and when would you choose each?
- SQL.What is MVCC ?
- SQL.What is AutoVacuum Postgres ?
Categories
- Aptana
- Azure
- C#
- DataSnap
- DBExpress
- Delphi
- Delphi и сети
- Delphi. Язык программирования
- ExtJS
- FastReport
- FireDAC
- FireMonkey
- GIT
- ICS
- IDE
- IIS
- Indy
- InnoSetup
- javascript
- jQuery
- JSON
- LiveBindings
- MSHTML
- MySQL
- PHP
- REST
- Ribbons
- SMS
- SQL инструкции
- SVN
- TRichView
- UniGui
- WebBroker
- WinAPI
- Windows
- Алгоритмы
- Без рубрики
- Деревья
- Ищу ответ
- Компонентостроение
- Мои компоненты
- Начальный уровень
- Обработка исключений
- Парсинг
- Потоки(Threads)
- Регулярные выражения
- Тестирование приложений
Category Archives: Без рубрики
Java.DBMigrationTools.How can Liquibase be integrated with Spring Boot?
Liquibase integration in Spring Boot is pretty straightforward: Boot auto-configures it and runs migrations on startup (before your app starts serving traffic), as long as Liquibase is on the classpath and you point it to a changelog. 1) Add the … Continue reading
Posted in Без рубрики
Comments Off on Java.DBMigrationTools.How can Liquibase be integrated with Spring Boot?
Java.DBMigrationTools.What is runAlways and how does it differ from runOnChange?
These are Liquibase-specific escape hatches, and interviewers expect you to know why they exist and why they’re dangerous. runAlways runAlways=true means the changeset executes every time Liquibase runs, even if it was already applied. Example Key properties Ignores execution history … Continue reading
Posted in Без рубрики
Comments Off on Java.DBMigrationTools.What is runAlways and how does it differ from runOnChange?
Java.DBMigrationTools.How do you enforce that developers don’t skip migrations?
You enforce it with process + CI + runtime gating so there’s no “optional” path. 1) CI: fail if schema isn’t produced only by migrations Golden rule: tests must start from an empty DB and run migrations. In CI, spin … Continue reading
Posted in Без рубрики
Comments Off on Java.DBMigrationTools.How do you enforce that developers don’t skip migrations?
DBMigrationTools.which db allow transactional ddl and which not ?
Short rule (memorize this) PostgreSQL supports transactional DDL; MySQL and Oracle mostly do not. Now the precise breakdown 👇 PostgreSQL ✅ Best-in-class transactional DDL Supports rollback for most DDL: Transactional CREATE TABLE ALTER TABLE DROP TABLE ADD/DROP COLUMN CREATE INDEX … Continue reading
Posted in Без рубрики
Comments Off on DBMigrationTools.which db allow transactional ddl and which not ?
Java.DBMigrationTools.How do migration tools handle transactional vs non-transactional statements?
This is a classic senior trap question. The key is: the database decides, migration tools just adapt. Core rule (memorize this) Migration tools run each migration inside a transaction only if the database supports transactions for the statements being executed. … Continue reading
Posted in Без рубрики
Comments Off on Java.DBMigrationTools.How do migration tools handle transactional vs non-transactional statements?
Java.DBMigrationTools.How can you test migrations automatically?
Automatic migration testing = spin up a real DB in CI, apply migrations, and assert schema + data + invariants. Anything less is false confidence. What to test (in order of value) 1) “Migrations apply cleanly from empty DB” Create … Continue reading
Posted in Без рубрики
Comments Off on Java.DBMigrationTools.How can you test migrations automatically?
Java.DBMigrationTools.How do you manage migration conflicts in a team environment?
What “migration conflict” usually means Two branches add migrations that collide: same version (Flyway V12__…) same object change (both alter users table) One branch merges and the other now fails in CI/prod People “fix” by editing old migrations (🚫) Flyway … Continue reading
Posted in Без рубрики
Comments Off on Java.DBMigrationTools.How do you manage migration conflicts in a team environment?
Java.DBMigrationTools.What happens when a migration file is modified after being applied?
Short answer: the migration tool will fail fast and refuse to continue — and that’s a feature, not a bug. All serious migration tools do checksum validation. After a migration is applied The tool stores metadata in a DB table: … Continue reading
Posted in Без рубрики
Comments Off on Java.DBMigrationTools.What happens when a migration file is modified after being applied?
Java.DBMigrationTools.What’s the difference between forward-only and reversible migrations?
Forward-only migrations Forward-only migrations can only move the schema forward; mistakes are fixed by adding new migrations, not by reverting old ones. How it works Apply V5 Something’s wrong → create V6 to fix or compensate History is immutable Why … Continue reading
Posted in Без рубрики
Comments Off on Java.DBMigrationTools.What’s the difference between forward-only and reversible migrations?
Java.DBMigrationTools.How do you write migrations that work across different DB engines?
Strategy A: Use a DB-agnostic migration layer (best for “works everywhere”) Liquibase (recommended) Write declarative changes (types, constraints, indexes) and let Liquibase generate vendor SQL. Key techniques: Use Liquibase change types (createTable, addColumn, addForeignKeyConstraint) instead of raw SQL. Use properties … Continue reading
Posted in Без рубрики
Comments Off on Java.DBMigrationTools.How do you write migrations that work across different DB engines?