SunQuest
           Database Management
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDatabase Management

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old July 3rd, 2003, 11:27 PM
julcla julcla is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Perth, Western Australia
Posts: 8 julcla User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Zope Ms Access and Oracle

Hello all.

I'm trying to select some data via a dtml method, from some Oracle tables, and have them inserted into a Ms Access table.
(I'm not allowed to play with the real software)

I'm attempting to do this with a ZSQL select - then an insert, something along these lines...

Form
<form name='form1' action='meth_step_3'>
<tr>
<td>Start Date</td>
<td><input type='text' name='start_date'></input>
<td>End Date <input type='text' name='end_date'></input>
<input type='submit' name='Go'></input></td>
</form>


Oracle Select
select
H.mobile_no as mobile_number,
H.DEALER_NO as dealer_code,
SCD.ENTRY_DATE as date_added
from
jan.sc_detail SCD,
jan.handset H
where
SCD.handset_code = H.code and
SCD.comments = 'SERVICE ADDED' and
SCD.ENTRY_DATE > ('<dtml-var start_date>') and
SCD.ENTRY_DATE < ('<dtml-var end_date>') and
(H.status = 'A' or H.status = 'B') and
(H.DEALER_NO NOT BETWEEN '0000' and '0004')


Dtml method
<!--#with sql -->
<!--#call select_all_connects -->
<!--#call insert_all_connects -->
<!--#/with -->

MS Access Insert

INSERT into mConnectList
(
dealer_code,
mobile_number,
date_added
)
values
( <!--#sqlvar dealer_code type="string" -->,
<!--#sqlvar mobile_number type="string" -->,
<!--#sqlvar date_added type="string" -->
)


I'd love to do it in a single action - select into or the like, but for the fact that a ZSQL method can only connect to one DB at a time.

I'm not sure if there is a way of doing this with a dtml/ZSql method, but I'm hoping.

Thanks.
Julian

Last edited by julcla : July 4th, 2003 at 12:45 AM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDatabase Management > Zope Ms Access and Oracle


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway