116 lines
3.3 KiB
HTML
116 lines
3.3 KiB
HTML
<HTML>
|
|
<HEAD>
|
|
<TITLE> MySQLMan Help - Insert</TITLE>
|
|
</HEAD>
|
|
<BODY BGCOLOR="#FFFFFF">
|
|
|
|
<H1><font face="Verdana, Arial, Helvetica">MySQLMan Help</font></H1>
|
|
|
|
<TABLE width=100%>
|
|
<TR>
|
|
<TD align="right" valign="top">
|
|
<HR>
|
|
<B>
|
|
<a href="<%script_url%>?<%do_param%>=help&help_topic=toolbar"><font face="Verdana, Arial, Helvetica" size="2">Tool bar</font></a>
|
|
</B>
|
|
|
|
<B>
|
|
<a href="<%script_url%>?<%do_param%>=help&help_topic=home"><font face="Verdana, Arial, Helvetica" size="2">HOME</font></a>
|
|
</B>
|
|
</TD>
|
|
</TR>
|
|
</TABLE>
|
|
<TABLE width=100% cellpadding=20>
|
|
<TR><TD>
|
|
|
|
|
|
|
|
|
|
|
|
<H2><font face="Verdana, Arial, Helvetica">Insert</font></H2>
|
|
<FONT face="Verdana, Arial, Helvetica" size="2">
|
|
<P>
|
|
Insert a new record to the table specified. The insert form can be found by following the link "insert"
|
|
in the <a href="<%script_url%>?<%do_param%>=help&help_topic=toolbar">tool bar</a> or the <a href="<%script_url%>?<%do_param%>=help&help_topic=table_list">table list</a>. To insert a record into to that table,
|
|
you simply put the values in the "VALUE" column and then press "GO" once the text fields are filled.
|
|
</P>
|
|
<UL>
|
|
<li>
|
|
<B>Using functions</B>
|
|
<BR>To use the functions in INSERT, you need to first choose the function you need from the select list in
|
|
"Function" column. Then, enter the values for the functions in the column "Value".
|
|
</li>
|
|
<P>
|
|
|
|
For example to run<BR>
|
|
<tt>
|
|
<font size=2>
|
|
INSERT INTO <I>table_name</I><BR>
|
|
SET Datetime = NOW(), PASSWORD('MyPass')
|
|
</font>
|
|
</tt>
|
|
<P>
|
|
Here is what you put in the form:<BR>
|
|
<img src="mysql.cgi?<%do_param%>=help&help_topic=insert.jpg">
|
|
</li>
|
|
<P>
|
|
<li>
|
|
<B>Insert null values</B>
|
|
<BR>In the config file, if you have <I>insert_null</I> (in %config) set to 1, then there will be an extra colunm at
|
|
the end of the table called "Null". If a field is set to NULL, then there would be a checkbox for the field in
|
|
the column; there will not be one otherwise. Check the checkbox and leave the "Value" input text box blank to insert a record with that field being null. If both a value is entered in "Value" and "Null" checkbox is checked
|
|
for a field, then the value in "Value" will be taken and the check in the "Null" Checkbox will be ignored.
|
|
</li>
|
|
<P>
|
|
<li>
|
|
<B>Escape character</B>
|
|
<BR>Values entered in "Value" will be escaped automatically by the script. I.e. you do not need to
|
|
put a escape character (\) in before a single quote ('), etc.
|
|
</li>
|
|
<P>
|
|
<li>
|
|
<B>Fields with type TIMESTAMP</B>
|
|
<BR>Fields with type TIMESTAMP is hidden by default. You can have these fields shown by setting
|
|
<i>show_timestamp_field</i> to 1 in the config file (mysql.cfg).
|
|
</li>
|
|
|
|
</UL>
|
|
</FONT>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</TD>
|
|
</TR>
|
|
</TABLE>
|
|
<TABLE width=100%>
|
|
<TR>
|
|
<TD align="right" valign="top">
|
|
<B>
|
|
<a href="<%script_url%>?<%do_param%>=help&help_topic=toolbar"><font face="Verdana, Arial, Helvetica" size="2">Tool bar</font></a>
|
|
</B>
|
|
|
|
<B>
|
|
<a href="<%script_url%>?<%do_param%>=help&help_topic=home"><font face="Verdana, Arial, Helvetica" size="2">HOME</font></a>
|
|
</B>
|
|
<HR>
|
|
</TD>
|
|
</TR>
|
|
<TR>
|
|
<TD>
|
|
<font face="Verdana, Arial, Helvetica" size="2">
|
|
Related topics:
|
|
<a href="<%script_url%>?<%do_param%>=help&help_topic=table_list">Table List</a>
|
|
|
|
|
|
|
|
|
|
</font>
|
|
</TD>
|
|
</TR>
|
|
</TABLE>
|
|
</BODY>
|
|
</HTML>
|