YMatrix
Quick Start
Cluster Deployment
Data Model
Data Writing
Data Query
SQL Reference
Maintenance and Monitoring
Tool Guide
Troubleshooting
Defines a new mapping from users to external servers.
CREATE USER MAPPING FOR { username | USER | CURRENT_USER | PUBLIC }
SERVER servername
[ OPTIONS ( option 'value' [, ... ] ) ]
CREATE USER MAPPING Defines the user's mapping to an external server. You must be the owner of the server to define user mappings for it.
username
servername
OPTIONS ( option 'value' [, ... ] )
Create user maps between user bob and server foo:
CREATE USER MAPPING FOR bob SERVER foo OPTIONS (user 'bob', password 'secret');
CREATE USER MAPPING complies with ISO/IEC 9075-9 (SQL/MED).