<div dir="ltr"><div><br></div>OK, so I'm parsing a ton of data based on patterns in the lines. Given the line I pull out 3 things,<div>Timestamp</div><div>Key</div><div>Value</div><div><br></div><div>Right now for one of my patters I have </div>
<div><br></div><div>$Insert="insert into table ( TIMESTAMP, KEY, VALUE ) values ( $Timestamp, $Key, $Value )";</div><div><br></div><div>( effectively ).</div><div><br></div><div>I'm going to have about 20+ of these patterns. The actual insert is about 5x longer. Is there a way to "template" the Insert so I can basically reference the template in the pattern and re-use the template? That way if the template has to change down the line ( a new field added ) I update the template and not 20+ variables?</div>
<div><br></div><div>Robert</div><div><br clear="all"><div><br></div>-- <br>:wq!<br>---------------------------------------------------------------------------<br>Robert L. Harris<br><br>DISCLAIMER:<br> These are MY OPINIONS With Dreams To Be A King,<br>
ALONE. I speak for First One Should Be A Man<br> no-one else. - Manowar
</div></div>