Remove how-to-update-from-a-select-statement-in-sql-server
article thumbnail

Deep Dive Into Roles in MySQL 8.0

Percona

Here are the primary SQL commands that we will be discussing in relation to managing MySQL roles: CREATE ROLE and DROP ROLE create and remove roles. GRANT and REVOKE assign privileges to revoke privileges from user accounts and roles. How to create roles and grant privileges Suppose an application uses a mytestdb database.

article thumbnail

Fundamentals of Table Expressions, Part 11 – Views, Modification Considerations

SQL Performance

In Part 9 I compared views to derived tables and CTEs, and in Part 10 I discussed DDL changes and the implications of using SELECT * in the view’s inner query. SELECT orderid , orderdate , shippeddate FROM dbo. This article is the eleventh part in a series about table expressions. Sample Data. CHECK OPTION. FastOrders.

Servers 130
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

Restrict MySQL Connections to Broken Replica in ProxySQL

Percona

ProxySQL is a high-performance SQL proxy, which runs as a daemon watched by a monitoring process. The daemon accepts incoming traffic from MySQL clients and forwards it to backend MySQL servers. Most configurations can be done at runtime using queries similar to SQL statements in the ProxySQL admin interface.

Traffic 94
article thumbnail

Deep Dive into MySQL’s Performance Schema

Percona

While working, the customer raised two interesting questions: how can he make complete use of the performance schema, and how can he find what he requires? I realized that it is important to understand the insights of the performance schema and how we can make effective use of it. T he MySQL version I am using here is 8.0.30.

article thumbnail

Configuring PgBouncer for Multi-Port Access

Percona

From time to time, situations occur where unusual circumstances dictate out-of-the-box thinking. The problem is you either don’t or can’t refactor your application servers; something, maybe, about not having enough time in the day. About the files Below is a summary of the files and how they will be edited.

Database 121
article thumbnail

The Lock Escalation Threshold – Part 3

SQL Performance

When SQL Server reads data under locking read committed isolation (the default for non-cloud offerings) and chooses row-level locking granularity, it normally only locks one row at a time. From a lock escalation perspective, we’re more concerned with the times locks need to be held longer than usual for locking read committed.

Testing 91
article thumbnail

Feedback Wanted: Making EXPLAIN Require Less Privileges for INSERT/UPDATE/DELETE Statements

Percona

Introduction/TLDR: We are considering changing EXPLAIN in Percona Server for MySQL to require less privileges for providing execution plans for INSERT/UPDATE/DELETE statements (and possibly changing the behavior for EXPLAIN SELECT as well), to make it more convenient and safer to use with monitoring and query analysis tools.