Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in posts by ApocalypSys only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
ApocalypSys
User Profile
Collapse
Profile Sidebar
Collapse
ApocalypSys
Last Activity: Feb 27 '08, 08:22 AM
Joined: May 11 '07
Location:
Subscriptions
2
Subscribers
0
Activities
About
Media
Subscribed
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Source
All
ApocalypSys only
Visitor Messages Only
Advanced
Filtered by:
Clear All
new posts
ApocalypSys
started a topic
Substract hour into a function
in
PostgreSQL
May 14 '07, 07:04 PM
Substract hour into a function
Hi, I need to substract a variable hour from a timestamp in PostgreSQL 8.2, I think I can use the following sentence
Code:
select '2007-05-14 12:36:47' + ('-5 hours'::reltime);
I try that line in console and works fine for my purposes, but I'm having troubles turning the '-5' into a parameter for a plpgsql function.
Do you have any recommendations about how this can be done?
PS:...
See more
|
Go to post
ApocalypSys
replied to
Retrieve number of rows in table
in
PostgreSQL
May 11 '07, 10:49 PM
Hi, you can use the following sentence
Code:
SELECT COUNT (*) FROM tablename;
I hope this can help you.
See more
|
Go to post
Leave a comment:
Post Comment
Cancel
No activity results to display
Show More
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Leave a comment: