set fd [open bigfile.txt] set content [read $fd] close $fd set qcontent [string map {' ''} $content] db eval "INSERT INTO t1 VALUES(1,2,'$qcontent')"