Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
Search the Tips

SQL - Page 2

PL/SQL
  SQL
Transact-sql
21-40 of 604     Previous     Next
Use UNION ALL Instead of UNION
by Srinath MS
To improve query speed, use the UNION ALL statement.
Calculate the Last Day of the Month for Any Given Date
by Raja Krishna
The code in this tip calculates the last day of the month for any given date.
Read an Image from a Database Using the getBinaryStream Method
by Leonard Anghel
This following code shows you how to extract an image from a database using the getBinaryStream method.
Creating Tables in the Default Tablespace
by MS Sridhar
Most users typically create tables in the default tablespace. Most of them are not familiar with the actual tablespaces concept and are not aware that this is responsible for the issues they encounter when large data is pumped into said tables.
Using the GRANT Command
by Alexander Ocher
The SQL GRANT command is used to grant access privileges to database objects and role authorizations.
Using MySQL's LIMIT Command to Control Returned Rows
by Srinath MS
Use the script shown in this tip to select a particular number of rows after a certain row in MySQL.
Determine the Version and Build Information for Microsoft SQL Server
by Alexander Ocher
Use the query shown in this tip to determine the version and build information for Microsoft SQL Server.
Trigger Efficiency in Oracle
by Alexander Ocher
It turns out that the latest documentation for Oracle 10g and 11g is incorrect and the documentation for Oracle 9i and previous releases is correct: AFTER row triggers are more efficient than BEFORE row triggers.
Obtain Information About Table Columns in Microsoft SQL Server
by Alexander Ocher
To obtain information about table columns in Microsoft SQL Server, use the INFORMATION_SCHEMA.COLUMNS view.
Changing the Locking Scheme on a Table
by Navin Varma
Using the right type of locking on tables is very important to ensure application scalability.
Testing Compatibility Between SQL Server Versions
by Srinath MS
When migrating SQL code (stored procedures, triggers, etc.) to newer versions, it's not uncommon to have to rewrite your entire back-end code. However, a simpler solution is to check the exisiting code's compatibility with the newer versions.
Execute a SQL Statement with Variable Parameters
by Leonard Anghel
When you have to execute the same SQL statement (in general an UPDATE) for different values you can use the PreparedStatement.
Convert a java.util.Date Object to a java.sql.Date Object
by Leonard Anghel
The code in this tip demonstrates how to convert a java.util.Date object to a java.sql.Date object.
Using ANYDATA in Oracle 9i
by Shraddha Pandya
First introduced in Oracle 9i, ANYDATA is a "self-describing data instance type" which means it not only holds the value, but it also holds its own data type within each instance of it.
When to use ORDER in Sequences in PL/SQL
by Shraddha Pandya
You may need to use ORDER to force sequence numbers to be output in the order of request when you're using them for timestamping.
Quick Script Monitors Application-generated SQL
by Jason Bramsden
This script was written to monitor a program whose process life was only a few seconds. It runs forever and only outputs that SQL which is generated by the program as it's running.
Creating Oracle Table and Column Names that Start with an Underscore
by Amit Jain
The SQL syntax to create these tables is similar to that of creating any other table—with a slight difference.
Predicate Pushing
by Shraddha Pandya
Oracle supports the pushing of predicates into a given view.
Workaround for the SQL DISTINCT Clause
by Srinath MS
The SQL DISTINCT clause isn't case sensitive, which means that your query might end up pulling records with different cases.
Returning a Random set of Records
by Parthasarathy Mandayam
Find out how to use the NEWID() function to return a random set of records.
21-40 of 604     Previous     Next
Sitemap