<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.dotnetzone.gr:443/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Πρώτα Βήματα - Βάσεις δεδομένων</title><link>https://www.dotnetzone.gr:443/cs/forums/73/ShowForum.aspx</link><description>Για όσους κάνουν τα πρώτα τους βήματα στην Microsoft Access ή τον SQL Server, ή γενικότερα στη θεωρία βάσεων δεδομένων.</description><dc:language>el</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>Απ: question about Update</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/14183.aspx</link><pubDate>Fri, 23 Jun 2006 09:13:59 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:14183</guid><dc:creator>cap</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/14183.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=73&amp;PostID=14183</wfw:commentRss><description>Να παρακαλέσω, όσο αυτό είναι δυνατόν, να γράφουμε με Ελληνικά και όχι Greekglish. Διευκολύνει τόσο την ανάγνωση όσο και την αναζήτηση από άλλα μέλη.</description></item><item><title>Απ: question about Update</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/14182.aspx</link><pubDate>Fri, 23 Jun 2006 07:14:04 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:14182</guid><dc:creator>jimenez</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/14182.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=73&amp;PostID=14182</wfw:commentRss><description>ok na sai kala.</description></item><item><title>Απ: question about Update</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/14180.aspx</link><pubDate>Fri, 23 Jun 2006 01:20:57 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:14180</guid><dc:creator>evliatsas</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/14180.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=73&amp;PostID=14180</wfw:commentRss><description>&lt;P&gt;&lt;BLOCKQUOTE&gt;&lt;table width="85%"&gt;&lt;tr&gt;&lt;td class="txt4"&gt;&lt;img src="/cs/Themes/default/images/icon-quote.gif"&gt;&amp;nbsp;&lt;strong&gt;jimenez wrote:&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="quoteTable"&gt;&lt;table width="100%"&gt;&lt;tr&gt;&lt;td valign="top" class="txt4"&gt;DT DT2 &lt;BR&gt;&lt;BR&gt;a b 12:00 NULL &lt;BR&gt;&lt;BR&gt;c d 13:00 NULL&lt;BR&gt;&lt;BR&gt;Opou null kai ayto datetime. Otan 8elw na kanw update datetime&amp;gt;13:00 mou enimerwnei kai tis dyo egrafes.&lt;BR&gt;&lt;BR&gt;Update table SET DT2 = '13:30' where DT&amp;lt;='13:30'&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/BLOCKQUOTE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Όπως καταλαβαίνεις, 12:00&amp;lt;=13:30 επιστρέφει TRUE οπότε καλά κάνει και ενημερώνεται η εγγραφή.&lt;/P&gt;
&lt;P&gt;Ο μόνος τρόπος, για να ενημερώσεις μόνο μία εγγραφή, είναι το WHERE CLAUSE&amp;nbsp; να είναι TRUE μόνο για μία μοναδική εγγραφή.&lt;/P&gt;
&lt;P&gt;Άν δεν μπορείς να το καταφέρεις αυτό με το πρωτεύων κλειδί των εγγραφών σου, θα πρέπει να δημιουργήσεις μία λογική συνθήκη.&lt;/P&gt;
&lt;P&gt;π.χ. Update table SET DT2 = '13:30' where DT= select max(DT) from table&lt;/P&gt;</description></item><item><title>Απ: question about Update</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/14169.aspx</link><pubDate>Thu, 22 Jun 2006 17:15:43 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:14169</guid><dc:creator>jimenez</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/14169.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=73&amp;PostID=14169</wfw:commentRss><description>ta dyo teleytaia pedia einai datetime (DT &amp; DT2)</description></item><item><title>Απ: question about Update</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/14168.aspx</link><pubDate>Thu, 22 Jun 2006 17:15:06 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:14168</guid><dc:creator>jimenez</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/14168.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=73&amp;PostID=14168</wfw:commentRss><description>koitaxte ena pedio einai date time.otan exw tis eksis egraffes:&lt;br /&gt;
&lt;br /&gt;
       &lt;br /&gt;
&lt;br /&gt;
       DT   DT2   &lt;br /&gt;
&lt;br /&gt;
a b 12:00 NULL &lt;br /&gt;
&lt;br /&gt;
c d 13:00 NULL&lt;br /&gt;
&lt;br /&gt;
Opou null kai ayto datetime. Otan 8elw na kanw update datetime&gt;13:00 mou enimerwnei kai tis dyo egrafes.&lt;br /&gt;
&lt;br /&gt;
Update table SET DT2 = '13:30' where DT&lt;='13:30'</description></item><item><title>Απ: question about Update</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/14165.aspx</link><pubDate>Thu, 22 Jun 2006 07:49:36 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:14165</guid><dc:creator>cap</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/14165.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=73&amp;PostID=14165</wfw:commentRss><description>Θα πρέπει πρώτα να ορίσεις τι σημαίνει "τελευταία" εγγραφή. Η τελευταία εγγραφή όπως τα βλέπεις δεν είναι πάντοτε αναγκαία και η τελευταία ημερολογιακά εγγραφή. Μήπως θα έπρεπε να χρησιμοποιήσεις κάποιο πεδίο datetime με default τιμή την ημ/νία ώρα της εγγραφής ωστε να μπορείς μετά να κάνεις UPDATE...WHERE χρησιμοποιώντας αυτό το πεδίο;</description></item><item><title>Απ: question about Update</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/14161.aspx</link><pubDate>Thu, 22 Jun 2006 05:53:02 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:14161</guid><dc:creator>jimenez</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/14161.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=73&amp;PostID=14161</wfw:commentRss><description>sorry itan kapws viastiko post.apla 8elw panta na kanw update tin teleytaia eggrafi pou exei null timi sto pedio toy pinaka.</description></item><item><title>Απ: question about Update</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/14160.aspx</link><pubDate>Thu, 22 Jun 2006 03:59:24 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:14160</guid><dc:creator>Mitsaras</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/14160.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=73&amp;PostID=14160</wfw:commentRss><description>Ας ονομάσουμε τα πεδία First, Second &amp; Third, με τη σειρά που τα δίνεις.&lt;br /&gt;
&lt;br /&gt;
Αν κατάλαβα καλά, θες να αλλάξεις την τιμή του 3ου. Θα πρέπει να γράψεις "UPDATE TableName SET Third = ... WHERE First = A AND Second = B".&lt;br /&gt;
&lt;br /&gt;
Καλό θα ήταν να ορίσεις κάποιο primary key πάντως αν δεν το έχεις ήδη κάνει.</description></item><item><title>Απ: question about Update</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/14159.aspx</link><pubDate>Thu, 22 Jun 2006 02:59:39 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:14159</guid><dc:creator>γιωργος μπακογιαννης</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/14159.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=73&amp;PostID=14159</wfw:commentRss><description>Εάν μας έλεγες λίγο περισσότερα, για να καταλάβουμε</description></item><item><title>question about Update</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/14156.aspx</link><pubDate>Wed, 21 Jun 2006 23:25:38 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:14156</guid><dc:creator>jimenez</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/14156.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=73&amp;PostID=14156</wfw:commentRss><description>&lt;P&gt;Guys exw 2 egrafes me timi se ena pedio toy table null,pws mporw na kanw update mono stin teleytaia egrafi?&lt;/P&gt;
&lt;P&gt;p.x&lt;/P&gt;
&lt;P&gt;a b null&lt;/P&gt;
&lt;P&gt;c d null&lt;/P&gt;</description></item></channel></rss>