SQL FAQ - Oracle FAQ
COMMIT - save work done SAVEPOINT - identify a point in a transaction to which you can later roll back ROLLBACK - undo the modification I made since the last COMMIT SET TRANSACTION - Change transaction options like isolation level and what rollback segment to use SET ROLE - set the current active roles DML are not auto-commit. If you include the SAMPLE clause within a multi-table or remote query, you will get a parse error or "ORA-30561: SAMPLE option not allowed in statement with multiple table references"
Case sensitive search in SQL Server queries : Narayana Vyas Kondreddi's home page
It is important to note that, if and when you migrate the following queries onto a case sensitive database, it is better to get rid of the additional bits from the WHERE clause, and compare normally. That means, you can have a default SQL Server installation with case insensitive collation, but a specific database or a set of columns can have case sensitive collation
How to search all columns of all tables in a database for a keyword? : Narayana Vyas Kondreddi's home page
Though this procedure is quite quick on smaller databases, it could take hours to complete, on a large database with too many character columns and a huge number of rows
Blog SQL Query to find out the frequency of each element in a column By Hemant Srivastava on Oct 17, 2012 This blog explain how we can get the frequency distribution of each element in a column using SQL
everytime i insert the data into temp table and delete the table, but as usual the identity column retains the value, is there any solution to reseed the value of the identity column of temporary table. Fill in your details below or click an icon to log in: Email (required) (Address never made public) Name (required) Website You are commenting using your WordPress.com account
How to find column names for all tables in all databases in SQL Server - Stack Overflow
This is because the information is within the specific database and the simple use of the "fedb" doesn't produce the correct results, it simply doesn't give access. SOOO to that is why I use a CURSOR to collect the databases and ignore those that are Off-line, which in this case, a utility script, it is a good use of same
This query is intended to provide a list of permissions that a user has either applied directly to the user account, or through roles that the user has. This will be null if the associated permissions to the object are defined at directly on the user account, otherwise this will be the name of the role that the user is a member of
script the source table and then run the script on destination, where you want to create the table, this will create a table with the same name with all the features of the source table. Tha query will give you properties for that table (columns, keys, values, etc.) I want to pull the same properties from a result set that is not already a table
No comments:
Post a Comment