Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

PowerShell write to a CSV like Database?

$
0
0

Hi,

Is there a simple way using PowerShell writing to a CVS like Database (a human readable – best would be csv).

It just has to be a simple Table like

Date, Topic1, Topic2, Topic3, Topic4, Topic5

2014-10-04, Yes, No, Yes, Maybe, 1

2014-10-05, Yes, No, No, Maybe, 2

2014-10-05, Yes, No, No, Maybe, 2

The Problem is that I don’t have the values in the rows at once.

I want to say db.add($date, “Topic1”, “Value”);

-- > the Value is set in the column Topic1 on the line $date.

If Line does not exist, it should be created. If Line is already existing, only the field of topic1 should be updated (others should not be changed).

 

I also need some reading methods … to get all results of a day or all of a column.

Is there something in PowerShell that helps me doing this in an elegant and comfortable way?



Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>