Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic insert columns and values using mybatis #50

Open
GoogleCodeExporter opened this issue Nov 22, 2015 · 0 comments
Open

Dynamic insert columns and values using mybatis #50

GoogleCodeExporter opened this issue Nov 22, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

Dynamic insert columns and values using mybatis
Below i mentioned my code.Is it posible for doing like below...

 <statement id="insert" parameterClass="Attributes">
      insert into DataTable                                
           <iterate open="(" close=")" conjunction=",">
        (#[].AttributeName#) 
      </iterate>
      (TenantID,ObjectID,Slot0,Slot1)
      values
      <iterate open="(" close=")" conjunction=",">
        #[].AttributeValue#
      </iterate>
    </statement>

Like Ex: insert into TableName (id,name) values ('101','sekhar')

Original issue reported on code.google.com by msekhar...@gmail.com on 6 Jun 2013 at 1:52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant