How to execute SQL view [closed] - sql

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have a view called 'selectView' in my postgresql database.
How i can get the results in to my server.js(nodejs code) like,
select * from selectView
Please suggest.

Sorry for the earlier mis-understanding. Didn't know node.js was server-side. A little search engine (you know the one) tells me that there's a postgresql library available for node.js. That should help you out.
Look here: https://github.com/brianc/node-postgres

Related

Regular expression to replace string values [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 8 years ago.
Improve this question
I have bunch of SQL insert statements like this
Insert into CHANGE_PROPERTY (EXCHANGE_PROPERTY_ID, NAMR...) values(**'113'**,'ABC')
I need to replace the PK value(EXCHANGE_PROPERTY_ID column) with sequence. After that the above query will be
Insert into CHANGE_PROPERTY (EXCHANGE_PROPERTY_ID, NAMR...) values(**SEQ.nextval**,'ABC')
Doing it manually will consume lot of time.I heard i can use regular expression in Notepad++ editor to do it but don't have any idea how to use it.
Can someone please tell me which regular expression to use?
replace values\([^,]+ with values(SEQ.nextval.

How can I get the timestamp at which a row was loaded? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Improve this question
I'd like to find the epoch time at which a certain row was loaded, so that I can pick out appropriate table decorators for fetching other events loaded in close proximity. How can I query this data?
AFAIK there is no automatically created column that holds the row time of creation - but you could certainly add one while loading data.

NSColorWeel in objective-c.... how does it works? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
That's the problem: I have to take an NSColor from the colorweel... how could I do? I tried declaring
NSColorWeel *weel;
But I don't know what to do next!
You could go read the docs?
Looks like you just call
- (NSColor *)color
to get the current color of the well, and
- (void)activate:(BOOL)exclusive
to activate it.

Removing dots from a date in a url [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Improve this question
I have the following URL in a table and I am given the responsibility to develop a script to remove the dots around the date.
For example:
The Date: 2013.01.20 should be read like the following in the url:
http://local.website.net/doc/q?file=5448245&date=20130829&ref=65457
Note the dots for http://local.website.net should not be removed.
How I can get started on this?
DECLARE #doc varchar(500) = 'http://local.website.net/doc/q?file=5448245&date=2013.08.29&ref=65457'
SELECT SUBSTRING(#doc,0,CHARINDEX('date=',#doc))+REPLACE(SUBSTRING(#doc,CHARINDEX('date=',#doc),LEN(#doc)),'.','')
SQL fiddle

How to Build New simple model in OpenERP7 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I am new to OpenERP I want to start develop new model
But I am using OpenERP 7 the the documentation for it is less I find more examples for OpenERP 6
If anyone can help please , if the is like for this topic?
Following links will help you:
OpenERP-7 Documentation
How to Develop New Module