Thread Subject: Database

Subject: Database

From: Jesper Lauridsen

Date: 11 Nov, 2009 19:10:19

Message: 1 of 1

Hello everybody

I really hope to get some help who to contact for questions regarding the database toolbox. I have tried soo many times on the news group but nobody seems to know any solution on my problem. I have copied the post with the problem that nobody seems to have a solution on:

I investigate the possibility to use Access as a database. Therefore I tried to export data from matlab to Access.

I used the function:

colname={'Nike'};

exdata=[1;2;3];

insert(conn, 'New_Price', colname, exdata)

where 'New Price' is the name of the table and colname is the name of the column where the exdata is exported to. When I try to export exdata it all work fine. The only problem is that the exdata is allways copied to the last row in the column Nike also if there are rows above that are empty. My question is how can I control what row in the column Nike the exdata is exported to?

Example


Column Bong Column Nike
66
77
88

Now exdata is exported to column Nike

Column Bong Column Nike
66 ______________
77_______________
88_______________
_________________ 1
_________________ 2
___________ ______ 3

Then lines indicate the separation been the columns.

Instead of exporting the exdata to row 1-3 in the column Nike it is exported to row 4-6 in column Nike

I really need some help:)

Best regards Jesper

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
insert Dhaval Patel 7 Dec, 2009 11:59:23
rssFeed for this Thread

Contact us at files@mathworks.com