FIND YOUR NEXT FEW LINES

Results for “tab”

Small, practical examples. Search by task or narrow things down below.

684 snippets foundClear filters
SQLiteConstraints & defaults

Reject duplicate business identifiers

SQLite: A UNIQUE constraint protects a business key independently of the primary key.

SQLite✓ Tested
PowerShellDates & numeric validation

Reject NaN and infinite values

PowerShell: Double.IsFinite excludes numeric values unsuitable for ordinary bounded calculations.

PowerShell✓ Tested
CArray transformations

Remove adjacent duplicates from a sorted array

C: Compact equal neighbors with a write index after sorting or otherwise establishing order.

C✓ Tested
Linux CommandsTransforming text

Remove blank or whitespace-only lines

Linux Commands: Use a POSIX character class so tabs and spaces are handled together.

Linux Commands✓ Tested
JavaQueues & collection operations

Remove collection items that satisfy a condition

Java: Use removeIf on a mutable collection to avoid changing it manually inside a for-each loop.

Java✓ Tested
SQLConstraints & defaults

Remove dependent rows with a declared cascade

SQL: ON DELETE CASCADE removes children when their referenced parent is deleted.

SQL✓ Tested
SQL ServerConstraints & defaults

Remove dependent rows with a declared cascade

SQL Server: ON DELETE CASCADE removes children when their referenced parent is deleted.

SQL Server✓ Tested
PostgresConstraints & defaults

Remove dependent rows with a declared cascade

Postgres: ON DELETE CASCADE removes children when their referenced parent is deleted.

Postgres✓ Tested
SQLiteConstraints & defaults

Remove dependent rows with a declared cascade

SQLite: ON DELETE CASCADE removes children when their referenced parent is deleted.

SQLite✓ Tested
SQLGetting Started

Remove duplicate result values

SQL: Use DISTINCT when repeated category values are not useful.

SQL✓ Tested
SQL ServerGetting Started

Remove duplicate result values

SQL Server: Use DISTINCT when repeated category values are not useful.

SQL Server✓ Tested
SQLBulk changes & set operations

Remove duplicate values while keeping the smallest key

SQL: Identify retained keys in a grouped subquery before deleting other copies.

SQL✓ Tested