On 11 January 2012 09:41, jayvandal <s...@ida.net> wrote: > I 'm having trouble with adding to this table > I cand drop the table, create table but can't add this data > > What is the format error? > Thanks for help! > > > (defn create-fruit [] > (sql/with-connection db > (sql/create-table :fruit > [:name "varchar(25)"] > [:appearance "varchar(25)"] > [:cost "integer(5)"] > [:id "float(2.3"))))
You are missing a ']' above. > (defn insert-rows-fruit [] > (sql/with-connection db > > (sql/insert-record :fruit > (sql/insert-rows As Sean pointed out in one of the previous threads you should not have both insert-record and insert-rows like this. > :fruit > ["Apple" "red" 59 8.7] > ["Banana" "yellow" 29 92.2] > ["Peach" "fuzzy" 139 9.0] > ["Orange" "juicy" 89 88.6])))) -- Michael Wood <esiot...@gmail.com> -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en