Calendar
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Mar | ||||||
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | 30 | |||
Categories
- CSS (2)
- Javascript (3)
- LANSA (21)
- SQL (8)
- Twitter API (1)
- Uncategorized (25)
Latest Postings
- 8. March 2010: American Express is Suing Me
- 28. January 2010: So frackin hard
- 1. September 2009: Twitter API STREAM Filter
- 15. June 2009: DOS Commands that work on Windows XP
- 14. April 2009: TWEATER CHEATER IS BORN
- 14. April 2009: Windows Keyboard Short Cuts - ALT F4 is my Favorite
- 11. April 2009: SELECT_SQL Examples
- 30. January 2009: My Recovery ID Idea
- 29. January 2009: Test Program to See what LANSA Services are Licensed
- 11. January 2009: glossary
Links
Archives
« 3 ways to invoke DEBUG for LANSA for the Web | whhoooo who - SQL UPDATE A PORTION OF FIELD FROM FIELD IN OTHER FILE »
SQL STUFF I FORGET
String Functions
| Function | Description | CHAR(N) | Returns the the string representation of the number N. |
|---|---|
| CHAR_LENGTH(S) | Returns the length of a string. |
| CONCAT(S1, S2) | Concatenates S1 with S2. |
| SUBSTR(S, I, L) | Returns a substring of S, starting at index I of lenght L. |
| LOWER(S) | Returns the lowercase representation of S. |
| UPPER(S) | Returns the uppercase representation of S. |
| TRIM(S) | Removes spaces from the beggining and and of S. |
| RTRIM(S) LTRIM(S) |
Removes spaces at the begging (right) or end (left) of S. |
Date and Time Functions
| Function | Description | CURDATE() CURTIME() |
Returns the system’s current date/time. |
|---|---|
| DATE(D) DATE(T) |
Converts a string representation of a date/time into into a date/time value. |
| DAY(D) | Returns the day(1-31) from the date D. |
| WEEK(D) | Returns the week (1-54) from the date D. |
| MONTH(D) | Returns the month (1-12) from the date D. |
| YEAR(D) | Returns the year from the date D. |
| DAYOFWEEK(D) | Returns the week day (1-7) from the date D where 1 is Sunday. |
| DAYOFWEEK_ISO(D) | Returns the week day (1-7) from the date D where 1 is Monday. |
| DAYOFYEAR(D) | Returns the number of the day, in a year (1-366). |
| HOUR(T) | Returns the hour (0-24) from the time T. |
| MINUTE(T) | Returns the minute from the time T. |
| SECOND(T) | Returns the second from the time T. |
| MICROSECOND(T) | Returns the microsecond from the time |
Leave a Reply
You must be logged in to post a comment.