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"))))

 (defn insert-rows-fruit  []
  (sql/with-connection db

   (sql/insert-record :fruit
  (sql/insert-rows
    :fruit
    ["Apple" "red" 59 8.7]
    ["Banana" "yellow" 29 92.2]
    ["Peach" "fuzzy" 139 9.0]
    ["Orange" "juicy" 89 88.6]))))

-- 
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

Reply via email to