I have a output file from sql database using tcl, the file has this format:
{testing1 read-write {This testing went well.} {} {} Integer32} {testing2 read-write {This testing went well.} {} {} Integer32}{testing3 read-write {This testing went well.} {} {} Integer32}{testing4 read-write {This testing went well.} {} {} Integer32}
The output is on one line:
I want each testing to be on different line that is:
{testing1 read-write {This testing went well.} {} {}Integer32}
{testing2 read-write {This testing went well.} {} {} Integer32}
{testing3 read-write {This testing went well.} {} {} Integer32}
{testing4 read-write {This testing went well.} {} {} Integer32}
This is the code, how do i make it output each testing on different lines:
I think its more of tcl than sql
I know i would have to use '\n', but i dont know where to insert it. Any help will be appreciated:
{testing1 read-write {This testing went well.} {} {} Integer32} {testing2 read-write {This testing went well.} {} {} Integer32}{testing3 read-write {This testing went well.} {} {} Integer32}{testing4 read-write {This testing went well.} {} {} Integer32}
The output is on one line:
I want each testing to be on different line that is:
{testing1 read-write {This testing went well.} {} {}Integer32}
{testing2 read-write {This testing went well.} {} {} Integer32}
{testing3 read-write {This testing went well.} {} {} Integer32}
{testing4 read-write {This testing went well.} {} {} Integer32}
This is the code, how do i make it output each testing on different lines:
Code:
set outfile [open "july07.txt" w]
set query "select name, Access, description, number, units, syntax from testingresults
WHERE LIKE 'testing%' AND Access='read-write'"
set foo [sql $query]
puts $outfile $foo
I think its more of tcl than sql
I know i would have to use '\n', but i dont know where to insert it. Any help will be appreciated: